Änderungen

Aus Hackerspace Ffm
Wechseln zu: Navigation, Suche

DataTransferWebRaspberryArduino

4 Byte hinzugefügt, 17:25, 31. Jul. 2017
print 'from Arduino: ', data
# received from Arduino written to all WebSocket clients
[con.write_message(data) for con in WebSocketHandler.connection$connections]
def on_message(self, message):
print 'from WebSocket: ', message
ser.write(message); # received from WebSocket writen to ard$arduino
def on_close(self):
688
Bearbeitungen