Stap 7: Roomduino Software-oplossing
netwerkconfiguratie:
1. zet router netwerk poort als 192.168.1.1
2. Stel Master node IP-adres zoals hieronder: het moet overeenkomen met de netto masker van de router:
statische byte myip [] =
{
192, 168, 1 121
};
statische byte gwip [] =
{
192, 168, 1, 1
};
statische byte dnsip [] =
{
192, 168, 1, 1
};
3. goed ingesteld YEELINK.com ID:
[urlBuf0] is YEELINK switch-adres, de andere vier zijn voor slaaf knooppunt
4. Vul uw API-sleutel van YEELINK in de laatste regel.
char website [PROGMEM] = "api.yeelink.net";
char urlBuf0 [PROGMEM] = "/ v1.0/device/xxx/sensor/xxx/";
char urlBuf1 [PROGMEM] = "/ v1.0/device/xxx/sensor/xxx/";
char urlBuf2 [PROGMEM] = "/ v1.0/device/xxx/sensor/xxx/";
char urlBuf3 [PROGMEM] = "/ v1.0/device/xxx/sensor/xxx/";
char urlBuf4 [PROGMEM] = "/ v1.0/device/xxx/sensor/xxx/";
char apiKey [PROGMEM] = "U-ApiKey: xxx";