Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision

Target

Select target project
  • clanglai/tp-lora-cooc
1 result
Select Git revision
Show changes
Commits on Source (2)
# boot.py -- run on boot-up
......@@ -22,9 +22,9 @@ def connect_to_ttn(lora_object):
pycom.heartbeat(False)
app_eui = ubinascii.unhexlify('0000000000000000')
app_key = ubinascii.unhexlify('--------------------------------') # replace the dash by the AppKey provided by TTN
app_key = ubinascii.unhexlify('1303DBC6209F8C44DFC1DF35471B9237') # replace the dash by the AppKey provided by TTN
#uncomment to use LoRaWAN application provided dev_eui
dev_eui = ubinascii.unhexlify('----------------') # replace the dash by the DevEUI provided to TTN
dev_eui = ubinascii.unhexlify('70B3D54992CDBDD6') # replace the dash by the DevEUI provided to TTN
pycom.rgbled(0xff0000) #red
time.sleep(1)
......@@ -56,7 +56,7 @@ for i in range (20):
s.send(pkt)
time.sleep(4)
# without downlink transmission first
#rx, port = s.recvfrom(256)
#if rx:
# print('Received: {}, on port: {}'.format(rx, port))
rx, port = s.recvfrom(256)
if rx:
print('Received: {}, on port: {}'.format(rx, port))
time.sleep(6)
{
"name": "Empty Project"
}
\ No newline at end of file