This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to use GPIO with MQTT sample

Hello, i I am designing a prototype, the goal is to be able to control a small engine. This engine will be activated when a message is received in MQTT.
I currently succeeded in making communications in MQTT and in using the MQTT libraries
Now I would like to be able to control my system and to do so I need to use 7 GPIO
I saw in another topic that there were 4 pins directly controllable with the NRF9160, they are PINS : P0.10 , P0.20 , P0.0 and P0.01
Moreover I could see that it is possible to route I/O from NRF52 to nrf9160, but I do not know the method to follow.So it must be possible to use 7 PINS with the nrf9160.

Today I haven't managed to use any PINS with the MQTT sample. The use of PINS requires the libraries gpio.h and gpio.c which I tried to import without success.


How can I use PINS with this example? And what is the procedure to redirect the PINS to the NRF9160?

Thanks in advance for the help, I've been stuck on it for a while and it would be really nice to be unlocked

Léo

Parents Reply Children
No Data
Related