Skip to content

return values from send_cmd #7

@WA4OSH

Description

@WA4OSH

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions