cancel
Showing results for 
Search instead for 
Did you mean: 

Enabling sensors on LRWAN-NS1 board

PDevo.1
Associate II

Hi everyone,

I successfully setup a lora communication using the pnucleo lrwan3 kit : https://www.st.com/en/evaluation-tools/p-nucleo-lrwan3.html

The only thing I'm missing is the way to activate the sensor reading on the lrwan-ns1 shield. I am using the I-cube-lrwan package.

I found a "#define SENSOR_ENABLED x" in sys_conf.h but when I set it to 1, I get an error telling me that the iks01a2_conf.h header file is missing... The problem is that my shield is NS1 and not iks01a2 so I'm more than confused. I also found c files with functions designed for the lrwan-ns1 sensors, but they are not used anywhere in the default code.

Has anyone faced the same issue ?

Thanks !

1 ACCEPTED SOLUTION

Accepted Solutions
PDevo.1
Associate II

Had to rewrite the code a bit to use the the lrwan_ns1 c files.

Thanks to this git repo:

https://github.com/moiyse/projet-pfe/blob/c21395eab62330f88e3629b289f6cbf69676d271/LoRaWAN/App/src/bsp.c

it was not that hard.

I close the issue

View solution in original post

1 REPLY 1
PDevo.1
Associate II

Had to rewrite the code a bit to use the the lrwan_ns1 c files.

Thanks to this git repo:

https://github.com/moiyse/projet-pfe/blob/c21395eab62330f88e3629b289f6cbf69676d271/LoRaWAN/App/src/bsp.c

it was not that hard.

I close the issue