ozanoner / ezlo-prj

home automation based on nrf52832 & esp32
GNU General Public License v3.0
0 stars 0 forks source link

userCommand read failed #10

Open ozanoner opened 6 years ago

ozanoner commented 6 years ago

how to reproduce: 1- send mqtt command "{"peer":3,"char":41216}" to btn1 2- read fails (er: reads gattServer value)

[info] nrfConn.write: {"conn":0,"handle":14,"cmd":0} [info] nrf: {"ble_debug":"[info] BleConn::userCommand received ({ conn :0, handle :14, cmd :0})"} [info] nrf: {"ble_debug":"[error] BleConn::userCommand read failed"}

ozanoner commented 6 years ago

https://github.com/ozanoner/ezlo-prj/blob/b2aa6866a0383340f42c80a6ad6ec039185bb0ff/src/gw-ble2/src/BleConn.h#L119

ozanoner commented 6 years ago

success with light sensor mqtt command: {"peer":8,"char":41222} response: {"peer":8,"char":41222,"val":44,"evt":5}

"evt":5 -> response to read command