Ive been using the card.aux gpio mode on celluar, wifi and ntn with success for about 6 months, however when I try to use it on a lora card i get a error message asking about a unique port but i have set the port in the config string
{“req”:“card.aux”,“mode”:“gpio”,“usage”:[“input-pullup”, “input-pullup”,“input-pullup”,“input-pullup”],“file”:“switch.qo”,“sync”:true,“format”:“compact”,“port”:1}
Does the lora noteacard support this feature ?
Stew
Hi @stewartm,
The devil is in the details here. While the card.aux
API is mostly supported by Notecard LoRa, if you dig in a little you’ll see the sync
argument (which is what allows a Notecard to autonomously report any state changes as new Notes) is not supported. This is because of the low bandwidth nature of Notecard LoRa and the fact that all Notefiles have to be templated…which I don’t believe is even possible with Notes generated in this mode, since the structure can vary e.g.:
{"state":[{"low":true},{},{},{}]}
vs
{"state":[{"high":true},{},{},{}]}