This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
proiecte:influxdb [2017/02/16 00:44] mihai.volmer [Sendint to HTTP endpoint (TCP)] |
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) ==== |