Difference between revisions of "Component: LoRaWAN (Seeed WIO-E5) (LORAWAN-E5) (Comms: IoT/Cloud)"
From Flowcode Help
Jump to navigationJump to search| Line 44: | Line 44: | ||
===LoraWAN Demo=== | ===LoraWAN Demo=== | ||
| + | |||
| + | Example LoRaWAN demo file. | ||
| + | |||
| + | {{Fcfile|lorawan-demo-bl0080.fcfx|LoRaWAN Demo}} | ||
==Macro reference== | ==Macro reference== | ||
Revision as of 09:06, 9 June 2025
| Author | Jac Kersing |
| Version | 1.0 |
| Category | Comms: IoT/Cloud |
Contents
- 1 LoRaWAN (Seeed WIO-E5) component
- 2 Detailed description
- 3 Examples
- 4 Macro reference
- 4.1 ChkConnected
- 4.2 Ev_Start
- 4.3 Ev_Stop
- 4.4 Ev_Timer
- 4.5 FreeUart
- 4.6 GetDownlinkByte
- 4.7 GetId
- 4.8 GetPort
- 4.9 GotDownlink
- 4.10 Initialize
- 4.11 Join
- 4.12 LowPowerSleep
- 4.13 ReInitUart
- 4.14 SendMsg
- 4.15 SendMsgConfirmed
- 4.16 SetDr
- 4.17 SetId
- 4.18 SetJoinMode
- 4.19 SetKey
- 4.20 SetLowPower
- 4.21 SetPort
- 4.22 SetRegion
- 5 Property reference
- 6 Component Source Code
LoRaWAN (Seeed WIO-E5) component
LoRaWAN Component for the Seeed WIO-E5 module.
Detailed description
No detailed description exists yet for this component
Examples
LoraWAN Demo
Example LoRaWAN demo file.
Macro reference
ChkConnected
| ChkConnected | |
| Sends AT command and checks response to check the LoRa E5 module is connected to the controller. | |
| Return | |
Ev_Start
| Ev_Start | |
| Broadcast to all components that simulation is starting | |
| Return | |
Ev_Stop
| Ev_Stop | |
| Broadcast to all components that simulation has stopped | |
| Return | |
Ev_Timer
| Ev_Timer | |
| Called back on the panel command System.TimerStart | |
| TimerID | |
| The identifier passed to the System.TimerStart panel command | |
| Return | |
FreeUart
| FreeUart | |
| Release UART resources (to allow for sleeping on some microcontrollers) | |
| Return | |
GetDownlinkByte
| GetDownlinkByte | |
| Get one byte from the received downlink message, returns -1 if no more bytes are available. | |
| Return | |
GetId
| GetId | |
| Get the specified ID from the LoRaWAN module. Valid types are DevEUI, AppEUI and DevAddr | |
| type | |
| Return | |
GetPort
| GetPort | |
| Get the portnumber of the downlink message. | |
| Return | |
GotDownlink
| GotDownlink | |
| Was a downlink received? | |
| Return | |
Initialize
| Initialize | |
| Initialize the component. Should be called before any other function is used but after the component received a hardware reset. (Toggle of the reset pin) | |
| Return | |
Join
LowPowerSleep
| LowPowerSleep | |
| Set low power sleep mode. Specify the number of seconds to sleep in the range 6-12959. | |
| seconds | |
| Return | |
ReInitUart
| ReInitUart | |
| Reclaim the UART after low power sleep of the CONTROLLER (not the LoRaWAN module). | |
| Return | |
SendMsg
| SendMsg | |
| Send LoRaWAN message, the message should be an array of byte values. To conserve airtime no ASCII strings should be used. | |
| msg | |
| len | |
| Return | |
SendMsgConfirmed
SetDr
| SetDr | |
| Explicitly set DataRate of transmissions. Valid values depend on the region used please consult the LoRaWAN regional parameter document to find them. | |
| dr | |
| Return | |
SetId
SetJoinMode
| SetJoinMode | |
| Set the join mode, valid options are MODE_OTAA or MODE_ABP. | |
| mode | |
| Return | |
SetKey
SetLowPower
| SetLowPower | |
| Set the Low Power mode of the module. Low power can be off (false) or on (true) | |
| on | |
| Return | |
SetPort
| SetPort | |
| Set the port used for transmissions | |
| port | |
| Return | |
SetRegion
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_lora-e5-component.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_lora-e5-component.fcfx