-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a713a7
commit be59fbb
Showing
11 changed files
with
302 additions
and
252 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
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
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
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
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
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,3 @@ | ||
Lat,Lon,Alt,Target lat,Target lon,Yaw,Pitch,Roll,Time,Temperature,Pressure,Humidity,Voltage,Received abort,TX count,RX count,RSSI,SNR,Uploader lat,Uploader lon,Uploader alt,ID | ||
42.306705,-71.336548,1500.5,42.307,-71.335,45.0,2.5,0.0,2024-11-30T14:45:12Z,23.4,1013.25,55.3,3.7,False,102,95,-70,12.5,42.3601,-71.0589,20.0,1234 | ||
42.306705,-71.336548,1500.5,42.307,-71.335,45.0,2.5,0.0,2024-11-30T14:45:13Z,23.4,1013.25,55.3,3.7,False,102,95,-70,12.5,42.3601,-71.0589,20.0,1234 |
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,15 @@ | ||
import asyncio | ||
import websockets | ||
|
||
|
||
async def echo(websocket): | ||
async for message in websocket: | ||
await websocket.send(message) | ||
|
||
|
||
async def main(): | ||
async with websockets.serve(echo, "localhost", 8080): | ||
await asyncio.Future() # run forever | ||
|
||
|
||
asyncio.run(main()) |
Oops, something went wrong.