A simple low latency UDP arduino client.
Added Nano 33 IOT
Initial release.
-
ESP8266
-
Nano 33 IOT
Make sure to have compatible hardware board installed.
- Download the latest release from src.
- Install through Arduino IDE.
#include <SimpleWiFiClient.h>
SimpleWiFiClient simpleWiFiClient;
simpleWiFiClient.init("ssid","password");
simpleWiFiClient.attach(OnRecieved);
void OnRecieved(String message) {
Serial.println(message);
}
simpleWiFiClient.run();
import socket
message = bytes("Hello, World!", "utf-8")
socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
socket.sendto(message, ("192.168.1.83", 4210))