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
49903092e39c72412c68625ab293323acddcc214 to 9456628f0ebdbe720e27b6adf7a32f05bb4fa86a
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
9456628f0ebdbe720e27b6adf7a32f05bb4fa86a
Select Git revision
Branches
main
1 result
Swap
Target
clanglai/tp-lora-cooc
Select target project
clanglai/tp-lora-cooc
1 result
49903092e39c72412c68625ab293323acddcc214
Select Git revision
Branches
main
1 result
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Update OTAA/main_template.py
· 726ae09e
LANGLAIS Charlotte
authored
2 years ago
726ae09e
Merge branch 'clanglai-main-patch-78718' into 'main'
· 9456628f
LANGLAIS Charlotte
authored
2 years ago
Update OTAA/main_template.py See merge request
!1
9456628f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
OTAA/main_template.py
+3
-1
3 additions, 1 deletion
OTAA/main_template.py
with
3 additions
and
1 deletion
OTAA/main_template.py
View file @
9456628f
...
...
@@ -29,7 +29,9 @@ dev_eui = ubinascii.unhexlify('----------------') # replace the dash by the DevE
pycom
.
rgbled
(
0xff0000
)
#red
time
.
sleep
(
1
)
lora
=
LoRa
(
mode
=
LoRa
.
LORAWAN
,
region
=
LoRa
.
EU868
,
device_class
=
LoRa
.
CLASS_C
)
# configure the parameters of LoRaWAN, authorize adaptive datarate and choose a CLASS C device
lora
=
LoRa
(
mode
=
LoRa
.
LORAWAN
,
region
=
LoRa
.
EU868
,
adr
=
True
,
device_class
=
LoRa
.
CLASS_C
)
print
(
'
DevEUI :
'
,
binascii
.
hexlify
(
lora
.
mac
()).
upper
())
lora
.
nvram_restore
()
#if there is nothing to restore it will return a False
...
...
This diff is collapsed.
Click to expand it.