-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix negative Lat an Long value entry
5.12.0l * Fix negative Latitude and Longitude value entry (#2461)
- Loading branch information
Showing
33 changed files
with
4,054 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# ESPAsyncUDP | ||
_Library patched with the [PR #21](https://github.com/me-no-dev/ESPAsyncUDP/pull/21)_ | ||
|
||
Async UDP Library for ESP8266 Arduino [![Build Status](https://travis-ci.org/me-no-dev/ESPAsyncUDP.svg?branch=master)](https://travis-ci.org/me-no-dev/ESPAsyncUDP) | ||
|
||
[![Join the chat at https://gitter.im/me-no-dev/ESPAsyncWebServer](https://badges.gitter.im/me-no-dev/ESPAsyncWebServer.svg)](https://gitter.im/me-no-dev/ESPAsyncWebServer?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
|
||
This is a fully asynchronous UDP library, aimed at enabling trouble-free, multi-connection network environment for Espressif's ESP8266 MCUs. | ||
|
||
The library is easy to use and includes support for Unicast, Broadcast and Multicast environments | ||
|
||
Latest GIT version of ESP8266 Arduino might be required for this library to work |
51 changes: 51 additions & 0 deletions
51
lib/ESPAsyncUDP-0.21/examples/AsyncUDPClient/AsyncUDPClient.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#include <ESP8266WiFi.h> | ||
#include "ESPAsyncUDP.h" | ||
|
||
const char * ssid = "***********"; | ||
const char * password = "***********"; | ||
|
||
AsyncUDP udp; | ||
|
||
void setup() | ||
{ | ||
Serial.begin(115200); | ||
WiFi.mode(WIFI_STA); | ||
WiFi.begin(ssid, password); | ||
if (WiFi.waitForConnectResult() != WL_CONNECTED) { | ||
Serial.println("WiFi Failed"); | ||
while(1) { | ||
delay(1000); | ||
} | ||
} | ||
if(udp.connect(IPAddress(192,168,1,100), 1234)) { | ||
Serial.println("UDP connected"); | ||
udp.onPacket([](AsyncUDPPacket packet) { | ||
Serial.print("UDP Packet Type: "); | ||
Serial.print(packet.isBroadcast()?"Broadcast":packet.isMulticast()?"Multicast":"Unicast"); | ||
Serial.print(", From: "); | ||
Serial.print(packet.remoteIP()); | ||
Serial.print(":"); | ||
Serial.print(packet.remotePort()); | ||
Serial.print(", To: "); | ||
Serial.print(packet.localIP()); | ||
Serial.print(":"); | ||
Serial.print(packet.localPort()); | ||
Serial.print(", Length: "); | ||
Serial.print(packet.length()); | ||
Serial.print(", Data: "); | ||
Serial.write(packet.data(), packet.length()); | ||
Serial.println(); | ||
//reply to the client | ||
packet.printf("Got %u bytes of data", packet.length()); | ||
}); | ||
//Send unicast | ||
udp.print("Hello Server!"); | ||
} | ||
} | ||
|
||
void loop() | ||
{ | ||
delay(1000); | ||
//Send broadcast on port 1234 | ||
udp.broadcastTo("Anyone here?", 1234); | ||
} |
52 changes: 52 additions & 0 deletions
52
lib/ESPAsyncUDP-0.21/examples/AsyncUDPMulticastServer/AsyncUDPMulticastServer.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#include <ESP8266WiFi.h> | ||
#include "ESPAsyncUDP.h" | ||
|
||
const char * ssid = "***********"; | ||
const char * password = "***********"; | ||
|
||
AsyncUDP udp; | ||
|
||
void setup() | ||
{ | ||
Serial.begin(115200); | ||
WiFi.mode(WIFI_STA); | ||
WiFi.begin(ssid, password); | ||
if (WiFi.waitForConnectResult() != WL_CONNECTED) { | ||
Serial.println("WiFi Failed"); | ||
while(1) { | ||
delay(1000); | ||
} | ||
} | ||
if(udp.listenMulticast(IPAddress(239,1,2,3), 1234)) { | ||
Serial.print("UDP Listening on IP: "); | ||
Serial.println(WiFi.localIP()); | ||
udp.onPacket([](AsyncUDPPacket packet) { | ||
Serial.print("UDP Packet Type: "); | ||
Serial.print(packet.isBroadcast()?"Broadcast":packet.isMulticast()?"Multicast":"Unicast"); | ||
Serial.print(", From: "); | ||
Serial.print(packet.remoteIP()); | ||
Serial.print(":"); | ||
Serial.print(packet.remotePort()); | ||
Serial.print(", To: "); | ||
Serial.print(packet.localIP()); | ||
Serial.print(":"); | ||
Serial.print(packet.localPort()); | ||
Serial.print(", Length: "); | ||
Serial.print(packet.length()); | ||
Serial.print(", Data: "); | ||
Serial.write(packet.data(), packet.length()); | ||
Serial.println(); | ||
//reply to the client | ||
packet.printf("Got %u bytes of data", packet.length()); | ||
}); | ||
//Send multicast | ||
udp.print("Hello!"); | ||
} | ||
} | ||
|
||
void loop() | ||
{ | ||
delay(1000); | ||
//Send multicast | ||
udp.print("Anyone here?"); | ||
} |
50 changes: 50 additions & 0 deletions
50
lib/ESPAsyncUDP-0.21/examples/AsyncUDPServer/AsyncUDPServer.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#include <ESP8266WiFi.h> | ||
#include "ESPAsyncUDP.h" | ||
|
||
const char * ssid = "***********"; | ||
const char * password = "***********"; | ||
|
||
AsyncUDP udp; | ||
|
||
void setup() | ||
{ | ||
Serial.begin(115200); | ||
WiFi.mode(WIFI_STA); | ||
WiFi.begin(ssid, password); | ||
if (WiFi.waitForConnectResult() != WL_CONNECTED) { | ||
Serial.println("WiFi Failed"); | ||
while(1) { | ||
delay(1000); | ||
} | ||
} | ||
if(udp.listen(1234)) { | ||
Serial.print("UDP Listening on IP: "); | ||
Serial.println(WiFi.localIP()); | ||
udp.onPacket([](AsyncUDPPacket packet) { | ||
Serial.print("UDP Packet Type: "); | ||
Serial.print(packet.isBroadcast()?"Broadcast":packet.isMulticast()?"Multicast":"Unicast"); | ||
Serial.print(", From: "); | ||
Serial.print(packet.remoteIP()); | ||
Serial.print(":"); | ||
Serial.print(packet.remotePort()); | ||
Serial.print(", To: "); | ||
Serial.print(packet.localIP()); | ||
Serial.print(":"); | ||
Serial.print(packet.localPort()); | ||
Serial.print(", Length: "); | ||
Serial.print(packet.length()); | ||
Serial.print(", Data: "); | ||
Serial.write(packet.data(), packet.length()); | ||
Serial.println(); | ||
//reply to the client | ||
packet.printf("Got %u bytes of data", packet.length()); | ||
}); | ||
} | ||
} | ||
|
||
void loop() | ||
{ | ||
delay(1000); | ||
//Send broadcast | ||
udp.broadcast("Anyone here?"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
####################################### | ||
# Syntax Coloring Map For Ultrasound | ||
####################################### | ||
|
||
####################################### | ||
# Datatypes (KEYWORD1) | ||
####################################### | ||
|
||
AsyncUDP KEYWORD1 | ||
AsyncUDPPacket KEYWORD1 | ||
|
||
####################################### | ||
# Methods and Functions (KEYWORD2) | ||
####################################### | ||
|
||
connect KEYWORD2 | ||
connected KEYWORD2 | ||
listen KEYWORD2 | ||
listenMulticast KEYWORD2 | ||
close KEYWORD2 | ||
write KEYWORD2 | ||
broadcast KEYWORD2 | ||
onPacket KEYWORD2 | ||
data KEYWORD2 | ||
length KEYWORD2 | ||
localIP KEYWORD2 | ||
localPort KEYWORD2 | ||
remoteIP KEYWORD2 | ||
remotePort KEYWORD2 | ||
|
||
####################################### | ||
# Constants (LITERAL1) | ||
####################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name":"ESPAsyncUDP", | ||
"description":"Asynchronous UDP Library for ESP8266", | ||
"keywords":"async,udp,server,client,multicast,broadcast", | ||
"authors": | ||
{ | ||
"name": "Hristo Gochkov", | ||
"maintainer": true | ||
}, | ||
"repository": | ||
{ | ||
"type": "git", | ||
"url": "https://github.com/me-no-dev/ESPAsyncUDP.git" | ||
}, | ||
"frameworks": "arduino", | ||
"platforms":"espressif" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name=ESP Async UDP | ||
version=1.0.0 | ||
author=Me-No-Dev | ||
maintainer=Me-No-Dev | ||
sentence=Async UDP Library for ESP8266 | ||
paragraph=Async UDP Library for ESP8266 | ||
category=Other | ||
url=https://github.com/me-no-dev/ESPAsyncUDP | ||
architectures=* |
Oops, something went wrong.