set sensor mode failed error code: 1

Discussion in 'Module Connector (MC)' started by Arturs Ivanovs, Jul 20, 2018.

  1. Arturs Ivanovs

    Arturs Ivanovs New Member


    I just acquired a X4M300 module and I would like to use XEP interface, however I am following errors. The code is based on Xethru examples. Do you have a possible solution?

    Thank you,

    Attached Files:

  2. Christian Rødli Amble

    Christian Rødli Amble Member Staff Member

    Hi Arturs,

    XTID_SM_MANUAL and friends should not be character constants, but the constants defined in xtid.h. Try including that file and removing the quotes. That is, x4m300_.set_sensor_mode(XTID_SM_STOP, 0);, not x4m300_.set_sensor_mode('XTID_SM_STOP', 0);