LoRa code for LoPy
-
Does anybody have any code available which is applicable to the following:
lopy #1 - LoRa node at tank #1 site measuring water depth with an analog input
lopy #2 - LoRa node at tank #2 site measuring water depth with an analog input
lopy #3 - LoRa gateway reading values from nodes # 1 and 2 and displaying them either with Pymate or web basedAny assistance with this would be appreciated as i have hit a brick wall !!
Thanks
-
@roy-boy
did you tried avaiable samples?
https://docs.pycom.io/chapter/tutorials/lopy/lora-mac-nano-gateway.html
https://docs.pycom.io/chapter/tutorials/lopy/lopy-lopy.htmlanalog sensor can by read by ADC
https://docs.pycom.io/chapter/tutorials/all/adc.html
https://docs.pycom.io/chapter/firmwareapi/pycom/machine/ADC.html
especially look at attenuation to read in some range