Pustaka Taratsa
Thingspeak: Analog GPIO

Thingspeak: Analog GPIO

Penulis: Onno Widodo Purbo

#include "ThingSpeak.h" #include #include "secrets.h" byte mac[] = SECRET_MAC; // Set the static IP address to use if the DHCP fails to assign IPAddress ip(192, 168, 0, 177); IPAddress myDns(192, 168, 0, 1); EthernetClient client; unsigned long myChannelNumber = SECRET_CH_ID; const char * myWriteAPIKey = SECRET_WRITE_APIKEY; void setup() { Ethernet.init(10); // Most Arduino Ethernet