Device type
| Slug | arduino |
| Driver | Tad101Driver |
| Recommended boards | ESP32 DevKit · MKR WiFi 1010 · Arduino Uno WiFi |
PlatformIO setup
ini
[env:arduino_uno_wifi]
platform = atmelavr
board = uno
framework = arduino
lib_deps =
links2004/WebSockets@^2.4.1Wiring (ESP32 + Neo-6M GPS)
Arduino Uno WiFi Rev2
D2 ──► GPS TX (SoftwareSerial)
D3 ──► GPS RX (SoftwareSerial)
D13 ──► Status LED (active-high)Sketch
cpp
#include <WebSocketsClient.h>
WebSocketsClient wsClient;
void setup() {
Serial.begin(9600);
wsClient.begin("soketi.example.com", 6001, "/app/YOUR_APP_KEY");
wsClient.onEvent(webSocketEvent);
}
void loop() {
wsClient.loop();
}
void webSocketEvent(WStype_t type, uint8_t* payload, size_t length) {
if (type == WStype_TEXT) {
// parse and respond to TAD101 command
}
}