Hardware Reference
In-Depth Information
false
char serverName[] = "us01.proxy.teleduino.org"; // Only if
useDns is true
unsigned int serverPort = 5353; // Can be set to either 53
or 5353
byte statusLedPin = 8;
We also need to enter the key that you got at the beginning of the chapter. However, you
will need to convert this key to the correct format so that you can insert it inside the Ardu-
ino sketch.
You can do so by visiting the following URL:
https://www.teleduino.org/tools/arduino-sketch-key
You will be prompted to insert the key inside the new window, as shown in the following
screenshot:
You can then copy and paste the result inside the Arduino sketch:
byte key[] = { 0x64, 0x26, 0xFF, 0xC9,
0x20, 0x4D, 0xF1, 0xCF,
0xAE, 0x42, 0xD4, 0x1A,
0xED, 0x6C, 0xB0, 0xB7 };
You also need to define the following variables so that the Teleduino service can work:
byte data[257];
byte dataLength;
byte hexStage;
unsigned long lastInstruction = 0;
Search WWH ::




Custom Search