This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
proiecte:influxdb [2017/02/16 00:44] mihai.volmer [ESP8266] |
proiecte:influxdb [2017/02/16 00:46] (current) mihai.volmer [ESP8266] |
||
|---|---|---|---|
| Line 113: | Line 113: | ||
| We made two implementations that send data from an LDR sensor to the server. | We made two implementations that send data from an LDR sensor to the server. | ||
| + | |||
| + | < | ||
| + | const int LDR = A0; | ||
| + | void loop() { | ||
| + | int ldr = analogRead(LDR); | ||
| + | | ||
| + | |||
| + | | ||
| + | |||
| + | | ||
| + | } | ||
| + | </ | ||
| ==== Sendint to HTTP endpoint (TCP) ==== | ==== Sendint to HTTP endpoint (TCP) ==== | ||
| Line 132: | Line 144: | ||
| | | ||
| | | ||
| - | | + | |
| | | ||
| | | ||