Notifications
Clear all

Arduino IoT Cloud Question

17 Posts
3 Users
3 Likes
3,070 Views
huckOhio
(@huckohio)
Member
Joined: 5 years ago
Posts: 180
Topic starter  

@byron

Thank you for the reply.  That is code is added to the .ino file by the cloud but I have never changed the value.  I'll change from 2 to 4 and observe how the messages change.  I did notice that the link to the cloud seems to drop every 5-10 minutes on the board in the house (connected to PC and about 8 feet from router).


   
ReplyQuote
huckOhio
(@huckohio)
Member
Joined: 5 years ago
Posts: 180
Topic starter  
Posted by: @byron
Posted by: @huckohio

Where can I find these commands and the associated parameters

I saw this in the Arduino Docs for the IOT Cloud.  I dont know if it would help your case but I post a snippet that refers to obtaining debug info on the state of the network connection to the IOT Cloud  

// Connect to Arduino IoT Cloud
ArduinoCloud.begin(ArduinoIoTPreferredConnection);

/*
The following function allows you to obtain more information
related to the state of network and IoT Cloud connection and errors
the higher number the more granular information you’ll get.
The default is 0 (only errors).
Maximum is 4
*/
setDebugMessageLevel(2);
ArduinoCloud.printDebugInfo();
}

But I think whatever you do on an ESP32 it likely that at some point it may fail and need a re-boot.  An external watchdog may save a trip to the bunnies on a cold winters evening. 🤨 

LOL.  Love the last line.  They're my wife's rabbits, so I get to stay in the nice warm house.  Unless there is a predator lurking around - then she calls me.  Last November a weasel got into the enclosure and killed 11 rabbits.  Took me until the spring to capture/kill it.  The good thing is the Pico is working fine and (currently) the fans are turning on and off as programed.  


   
ReplyQuote
Page 2 / 2