Skip to content

Instantly share code, notes, and snippets.

View maquinuz's full-sized avatar
:octocat:
Focusing

Alexandre Almeida maquinuz

:octocat:
Focusing
View GitHub Profile
scores = [54,67,48,99,27]
for i, score in enumerate(scores, 1):
print(i, score)
"""
1 54
2 67
3 48
4 99
5 27
"""
import usocket as socket
#import socket
def sendudp(host, port):
address = ("127.0.0.1", 6969)
data = b'hello udp'
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
/*
ESPTest for ZMTP + ZRE + ZOCP
Original author: Ronald Hof <ronald@k-n-p.org>
license: MPLv2
*/
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#include <string.h>