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
  • Very well I understand, would it be possible to have a complete answer when there is enough technical support?

    From what I understand, you must first configure the NRF52 card before moving on to configuring the NRF9160. This allows you to route the PINS from one card to the other.

    Is the GPIO configuration done exclusively in the Kconfig file? And I don't understand how to code in this type of file.

    Also, is it necessary to import libraries to use GPIOs in the source code?

    I have never done this kind of configuration and I am really stuck at the moment, some help could save my life

    Thanks in advance to the nordic semiconductor team


    Léo

Children
Related