1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#include <HttpClient.h> void setup() { pinMode(13, OUTPUT); digitalWrite(13, LOW); Bridge.begin(); } void loop() { HttpClient client; client.get("http://my.server.address/file.php"); char c = client.read(); if (c=='1') digitalWrite(13, HIGH); if (c=='0') digitalWrite(13, LOW); delay(5000); }