The bellow example does not work with the current mongoose-iot.
We are trying to use invoke_cb from a task but it doesn't work.
Could you give it a try ?
yes, sorry. i've traced the issue - looks like a regression in https://github.com/cesanta/dev/commit/e475c5a57b6e453189dc458f69035c21fd451387
working on a fix
https://github.com/cesanta/mongoose-iot/commit/f386d73692b2d67ac0acc88a25378b0e285b92a3 should've fixed it
please be careful with multiple tasks - mg-iot does not use locking/critical sections. i suggest that you at least use task with priority lower than mg-iot's main task (pri 3) and then employ critical sections of your own.
Thanks I confirm that the callback now works fine and the code is fixed.
There was another problem with the uart logging not working well but it is now fixed as well.
We will have a look at the priorities and the locking.