Slide 10
Slide 10 text
Page 10 Ably - Serious realtime infrastructure
Srushtika Neelakantam | Ably Masterclass - Episode 2
What’s happening in the code
1. In setup method
a. Set data rate
b. Connect to WiFi
c. Specify MQTT broker’s connection details
d. Call the connect method
2. In connect method
a. Check if WiFi is connected
b. If yes, connect to the MQTT broker
3. In loop method (called repeatedly)
a. Check if the RFID sensor has detected an access card
b. If yes, get the ID of that card, match it with an employee name and publish that as a
message to the Ably MQTT broker