This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:iot-open:remotelab:itt:relay [2019/10/29 07:16] – tomykalm | en:iot-open:remotelab:itt:relay [2020/07/20 09:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| ==== Technical details ==== | ==== Technical details ==== | ||
| - | This laboratory consists of a relay module attached to the ITT IoT controller module. | + | This laboratory consists of a relay module attached to the ITT IoT controller module. |
| === Sensors === | === Sensors === | ||
| Line 44: | Line 44: | ||
| #define RELAY_PIN 5 | #define RELAY_PIN 5 | ||
| - | // If message received switch relay | + | // If the message received switch relay |
| void iot_received(String topic, String msg) | void iot_received(String topic, String msg) | ||
| { | { | ||
| Line 74: | Line 74: | ||
| Serial.println(" | Serial.println(" | ||
| - | iot.printConfig(); | + | iot.printConfig(); |
| iot.setup(); | iot.setup(); | ||
| pinMode(RELAY_PIN, | pinMode(RELAY_PIN, | ||