mDash notification complete

Hi,
I am testing mdash with several esp32 devices , it works great!
I have two questions of Client Library:

  • How to detect that the notifications sent with mDashShadowUpdate & mDashNotify(“DB.Save”,…) has finished? my device is low consumption and must go to sleep after sending the data, I had to add a delay of a few seconds before going to sleep to wait for the sending to finish.
  • How can I send an array var of 1Kbyte? Should I use a json object?how?

Thanks
Nico

  1. At this moment, there is no way to get an ACK from the notification.
  2. You can create a compact binary object and base64-encode it using the %V specifier, per GitHub - cesanta/frozen: JSON parser and generator for C/C++ with scanf/printf like interface. Targeting embedded systems.