Skip to content

Instantly share code, notes, and snippets.

View EdwardDeaver's full-sized avatar
🎯
Focusing

Edward C. Deaver, IV EdwardDeaver

🎯
Focusing
View GitHub Profile
@aallan
aallan / async_webserver.py
Created July 4, 2022 15:38
An asynchronous webserver written in MicroPython to turn an LED on/off on a Raspberry Pi Pico W
import network
import socket
import time
from machine import Pin
import uasyncio as asyncio
led = Pin(15, Pin.OUT)
onboard = Pin("LED", Pin.OUT, value=0)
@tidwall
tidwall / example.js
Last active June 14, 2018 20:32
Connect to a live geofence in Tile38 using Node.js
openFence(9851, "localhost",
["NEARBY", "fleet", "FENCE", "POINT", "33", "-115", "1000"],
function(message){
console.log(message)
},
function(err){
console.log(err)
},
function(){
console.log("closed")