Skip to content

Instantly share code, notes, and snippets.

View fpoto's full-sized avatar

Francesco Potortì fpoto

View GitHub Profile
@fpoto
fpoto / udp-read-bug.ino
Last active December 26, 2015 15:09
This is to demonstrate the WiFiUdp.read() bug reported as issue 1644
#include <WiFi.h>
#include <WiFiUdp.h>
unsigned long inline ntpUnixTime ();
char ssid[] = "xxxxxxxx"; // your network SSID (name)
void setup()
{
Serial.begin(115200);
@fpoto
fpoto / udp-begin-bug.ino
Last active December 26, 2015 14:09
Demonstration of the WiFiUdp.write() bug posted as issue #1642. Works when allTogether is set to true, fails when set to false.
#include <WiFi.h>
#include <WiFiUdp.h>
unsigned long inline ntpUnixTime ();
char ssid[] = "xxxxxxxx"; // your network SSID (name)
void setup()
{
Serial.begin(115200);
@fpoto
fpoto / udp-stop-bug.ino
Last active December 26, 2015 10:18
Example code for the "WiFiUdp stop() does not release UDP socket" bug reported at https://github.com/arduino/Arduino/issues/1637. Only thing to change is the name (and possibly password) of your WiFi network. See the bug report for the expected output.
#include <WiFi.h>
#include <WiFiUdp.h>
unsigned long inline ntpUnixTime (WiFiUDP&);
char ssid[] = "xxxxxxxx"; // your network SSID (name)
void setup()
{
Serial.begin(115200);