Good afternoon. I don't understand how to generate a response to the ESP_BLE_MESH_MODEL_OP_SCHEDULER_ACT_STATUS event. As I understand it, there is no ready-made function in the ESP-IDF framework. The library lacks the necessary structure. When using the esp_ble_mesh_server_model_send_msg function, there is no reaction in the android application, although ESP_BLE_MESH_MODEL_OP_SCHEDULER_ACT_SET works fine. What should be the data format when forming the payload? Maybe I'm packing the variable incorrectly before sending it, and maybe someone has a working solution?
I used an example from zephyr to form the message.
Code: Select all
uint64_t val = 0U;
val = ((uint64_t)(reg->year) << 4) | index;
val |= ((uint64_t)(reg->day) << 23) | ((uint64_t)(reg->month) << 11);
val |= ((uint64_t)(reg->minute) << 33) | ((uint64_t)(reg->hour) << 28);
val |= ((uint64_t)(reg->day_of_week) << 45) | ((uint64_t)(reg->second) << 39);
val |= ((uint64_t)(reg->trans_time) << 56) | ((uint64_t)(reg->action) << 52);