Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
shastry
Node_Red LoRa
Commits
d36adb1a
Commit
d36adb1a
authored
Jun 26, 2020
by
shastry
Browse files
Upload New File
parent
fb04f1e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Node Code/testnode.html
0 → 100644
View file @
d36adb1a
<script
type=
"text/javascript"
>
RED
.
nodes
.
registerType
(
'
test_node_lora
'
,{
category
:
'
function
'
,
color
:
'
#a6bbcf
'
,
defaults
:
{
name
:
{},
username
:
{},
password
:{},
application_description
:{},
application_name
:{},
authentication_method
:{},
//authentication_method_2:{},
description_device
:{},
device_eui
:{},
device_name
:{},
application_key
:{},
device_eui
:{},
network_key
:{},
app_session_key
:{},
device_address
:{}
},
inputs
:
1
,
outputs
:
1
,
icon
:
"
file.png
"
,
label
:
function
()
{
return
this
.
name
||
"
test_node_lora
"
;
}
});
</script>
<script
type=
"text/x-red"
data-template-name=
"test_node_lora"
>
<
div
class
=
"
form-row
"
>
<
h2
>
Authentication
<
/h2
>
<
label
for
=
"
node-input-name
"
><
i
class
=
"
icon-tag
"
><
/i> Username</
label
>
<
input
type
=
"
text
"
id
=
"
node-input-username
"
placeholder
=
"
username
"
>
<
br
><
br
>
<
label
for
=
"
node-input-name
"
><
i
class
=
"
icon-tag
"
><
/i> Password</
label
>
<
input
type
=
"
text
"
id
=
"
node-input-password
"
placeholder
=
"
password
"
>
<
br
>
<
h2
>
Applications
<
/h2
>
<
label
for
=
"
node-input-name
"
><
i
class
=
"
icon-tag
"
><
/i> Application Description</
label
>
<
input
type
=
"
text
"
id
=
"
node-input-application_description
"
placeholder
=
"
application description
"
>
<
br
><
br
>
<
label
for
=
"
node-input-name
"
><
i
class
=
"
icon-tag
"
><
/i> Application Name</
label
>
<
input
type
=
"
text
"
id
=
"
node-input-application_name
"
placeholder
=
"
application name
"
>
<
br
><
br
>
<
label
for
=
"
node-input-name
"
><
i
class
=
"
icon-tag
"
><
/i> Authentication Method</
label
>
<
input
type
=
"
text
"
id
=
"
node-input-authentication_method
"
placeholder
=
"
authentication method(otaa or abp)
"
>
<
br
><
br
>
<
label
for
=
"
node-input-name
"
><
i
class
=
"
icon-tag
"
><
/i> Authentication Method</
label
><
br
>
<
br
>
<
h3
>
Devices
<
/h3
>
<
label
for
=
"
node-input-name
"
><
i
class
=
"
icon-tag
"
><
/i> Device Description</
label
>
<
input
type
=
"
text
"
id
=
"
node-input-description_device
"
placeholder
=
"
device description
"
>
<
br
><
br
>
<
label
for
=
"
node-input-name
"
><
i
class
=
"
icon-tag
"
><
/i> Device EUI</
label
>
<
input
type
=
"
text
"
id
=
"
node-input-device_eui
"
placeholder
=
"
device eui
"
>
<
br
><
br
>
<
label
for
=
"
node-input-name
"
><
i
class
=
"
icon-tag
"
><
/i> Device Name</
label
>
<
input
type
=
"
text
"
id
=
"
node-input-device_name
"
placeholder
=
"
device name
"
>
<
br
>
<
h4
>
Config
<
/h4
>
<
label
for
=
"
node-input-name
"
><
i
class
=
"
icon-tag
"
><
/i> Application Key</
label
>
<
input
type
=
"
text
"
id
=
"
node-input-application_key
"
placeholder
=
"
application key or app_session_key in case of abp
"
>
<
br
><
br
>
<
label
for
=
"
node-input-name
"
><
i
class
=
"
icon-tag
"
><
/i> Network Key</
label
>
<
input
type
=
"
text
"
id
=
"
node-input-network_key
"
placeholder
=
"
network key for both abp and otaa
"
>
<
br
><
br
>
<
label
for
=
"
node-input-name
"
><
i
class
=
"
icon-tag
"
><
/i> Device Address</
label
>
<
input
type
=
"
text
"
id
=
"
node-input-device_address
"
placeholder
=
"
device address only for abp. Leave blank for otaa
"
>
<
br
><
br
>
</script>
<script
type=
"text/x-red"
data-help-name=
"test_node_lora"
>
<
p
>
A
simple
node
that
converts
the
message
payloads
into
all
lower
-
case
characters
<
/p
>
</script>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment