Something went wrong, but don't fret — let's give it another shot.
The first part is simple: temperature = (uint8_t)adTemperature(); humidity = (uint8_t)adHumidity(); At this point you can already test the project. Upload the sketch to your Arduino board (make sure you changed the WiFi name & password! ) and then open the Serial monitor. You should see the IP address of the board displayed. Then, go a web browser, and type: 192. 168. 1. 104/temperature You should be greeted with the following message: {"temperature": 24, "id": "1", "name": "weather_station", "connected": true} If you can see that, it mean you project is working! If you want to learn more about the aREST framework that we are using here, you can visit the corresponding GitHub repository: This guide was first published on Sep 25, 2013. It was last updated on Sep 25, 2013. This page (Arduino sketch) was last updated on Jun 10, 2021. Text editor powered by tinymce.