Blynk and Thing-speak problem to work together

I am trying to read Modbus via TCP/IP and then visualise data on Blynk and ThingSpeak. modbus tcp ip works fine, thing-speak upload works fine, Blynk works fine - but only separated. When tring to upload data to TS and Blynk in one code the photon stop responding…

Does anyone have similar issue?

Some code to look at would be nice, as well as any error output there may have been.


Hi thank you for offering help!

Fortunately i manage to solve the problem . There were some delays() (implemented with while () {}. I thought than only using delay () is forbidden.

I have changed to

while (!mb.available() && ((millis()-readStartinside)<1000) ) {;

now works fine:)

Kind regards

1 Like