Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TP lora COOC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Monitor
Incidents
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LANGLAIS Charlotte
TP lora COOC
Compare revisions
0baf5c28834855727fab054f18e2e01fb61b0d6e to a3135ee8a59b0368466752fbdd060ae421fc4986
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
clanglai/tp-lora-cooc
Select target project
No results found
a3135ee8a59b0368466752fbdd060ae421fc4986
Select Git revision
Swap
Target
clanglai/tp-lora-cooc
Select target project
clanglai/tp-lora-cooc
1 result
0baf5c28834855727fab054f18e2e01fb61b0d6e
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
project pymakr
· dfb21af5
LANGLAIS Charlotte
authored
1 year ago
dfb21af5
main
· a3135ee8
LANGLAIS Charlotte
authored
1 year ago
a3135ee8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
OTAA/boot.py
+1
-0
1 addition, 0 deletions
OTAA/boot.py
OTAA/main.py
+5
-5
5 additions, 5 deletions
OTAA/main.py
OTAA/pymakr.conf
+3
-0
3 additions, 0 deletions
OTAA/pymakr.conf
with
9 additions
and
5 deletions
OTAA/boot.py
0 → 100644
View file @
a3135ee8
# boot.py -- run on boot-up
This diff is collapsed.
Click to expand it.
OTAA/main
_template
.py
→
OTAA/main.py
View file @
a3135ee8
...
...
@@ -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
)
This diff is collapsed.
Click to expand it.
OTAA/pymakr.conf
0 → 100644
View file @
a3135ee8
{
"name"
:
"Empty Project"
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.