I have successfully verified and uploaded an Arduino sketch created on Arduino IoT Cloud to a Firebeetle-ESP32, but it still indicates an 'offline' status.
For context: I am trying to make a scoreboard for a sportsfield where a person can change scores for a 'home-team' and 'visitor-team' score on a smartphone. These (2-digit) scores are then transmitted to the scoreboard across a sportsfield. The scoreboard comprises the Firebeetle-ESP32, which is programmed to decompose the 2-digit scores into single digits (i.e. tens and units) that can then control,via relays, the status of 4 electro-mechanical digit display-units. The Cloud responds correctly to score-changes made on the smartphone. However, with the Firebeetle offline I cannot then communicate the score updates to the scoreboard itself.
I would be grateful for any suggestions of things I might try or be pointed towards.
Here is the serial monitor output. Much of it is repeating itelf, of course, as it keeps on "retrying", so I have just included the first few of these loops.
I'm a novice in all this, but you have pointed out something that I should have notice.Yes, the I.P address looks nonsense. But I can't see what I can do about this.
I created my sketch using the Arduino online editor. My aim with this was simply to try to get the firebeetle online to see how I could communicate with it using the Arduino phone App, before trying it with something more elaborate. All I did, was declare two cloud variables, then use the sketch that was automatically generated. I used my own home WiFi details and the 'secret' key from the firebeetle. I made no attempt to change the sketch that had been generated because I just wanted to see how it worked before moving on.
Have I missed something out? Is it something to do with the way my home WiFi is configured, because there is nothing explicit in the sketch that I could edit? Or is it best to try to do this with the Arduino offline editor?
No, by default the board should get an ip address from your wifi router using dhcp.
Is it something to do with the way my home WiFi is configured, because there is nothing explicit in the sketch that I could edit?
Is it possible that the issue is related to your wifi router configuration, in the sketch the only thing you need to provide are wifi credentials. Do you have another board you could try to use ?
Or is it best to try to do this with the Arduino offline editor?
This is a good idea you could try to load some default examples from the WiFi library and check if the board can connect to your network
I have tried other boards, both Arduino and ESP32 but with no success. I'll try these again.
I'll look at the network settings as well. I just followed Vodafone's basic instuctions when I installed their router and everything seemed to work OK in terms of home internet and TV. But I have seen various reference to IP addreses, so maybe I could revisit those and see if I can get any joy.
And I'll certainly try the offline editor with a simple downloaded sketch to see if I can connect that way.
At least you have confirmed to me that I hadn't been doing anything wrong, in principle. Now to find out why it isn't working... It does look like it is something at my end.