Discover the aREST Framework: Easily control your Arduino, Raspberry Pi & ESP8266 Projects by Schwartz Marco

Discover the aREST Framework: Easily control your Arduino, Raspberry Pi & ESP8266 Projects by Schwartz Marco

Author:Schwartz, Marco [Schwartz, Marco]
Language: eng
Format: azw3
Published: 2016-03-26T16:00:00+00:00


This sketch is quite similar to what we already saw in previous projects, with some differences. First, we define a server name and port at the beginning of the sketch:

char* servername = "192.168.115.101"; int port = 3000;

The servername variable is basically the IP address of your computer. This will tell the ESP8266 to send data to the server running on your computer. You need to modify this variable with the IP address of the computer where your Meteor server will run.

Then, we define the interval between two measurements made by the board:

int measurement_interval = 60 * 1000; // 1 minute



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.