When a python script is used to send data to the RN2903/RN2483, the function call looks something like this. The first parameter is the layer that's being commanded - sys, mac, or radio.
send_cmd("sys set pindig GPIO10 0", delay=1)
When a Python script is used to query data from the RN2903/RN2483, the function call looks something like this:
send_cmd('sys get ver')
But this results in the result getting printed on the console. There are occasions when the return value needs to be put into a variable. For example how would you read a GPIO ?
#read button
send_cmd("sys get pindig GPIO12 0") ??
This will be necessary to get LoRaWAN up and running.
When a python script is used to send data to the RN2903/RN2483, the function call looks something like this. The first parameter is the layer that's being commanded - sys, mac, or radio.
send_cmd("sys set pindig GPIO10 0", delay=1)
When a Python script is used to query data from the RN2903/RN2483, the function call looks something like this:
send_cmd('sys get ver')
But this results in the result getting printed on the console. There are occasions when the return value needs to be put into a variable. For example how would you read a GPIO ?
#read button
send_cmd("sys get pindig GPIO12 0") ??
This will be necessary to get LoRaWAN up and running.