I am planning to use Raspberry pi as MQTT broker connected to one end on nodemcu and other end to AWS cloud.
There is a temperature sensor connected to Nodemcu.
Node MCU will publish temperature value as MQTT message. This message will be subscribed by AWS.
In the same way messagefrom AWS will be subscribed by NodeMCU to act on it.
I am able to establish secure comunication between Raspbery pi and AWS however facing challenges in establishing communication(wireless) between Raspberry pi and NodeMCU.
Any pointers would be helpful.