This example introduce the user to the MQTT Client and MQTT Server Library.
This example provides users the ability to work with Both Client and Server (Broker) MQTT Entities By combine the two entities to one example, we also allow the user to provide a loop back between internal and external clients (using the enrolled topic)
Server/Broker Allows full Broker capabilities (up to 4 clients)
Clients can connect/subscribed/publish to the broker at any time
Client Allows full mqtt client abilities
The Client can connect to remote broker, subscribe and publish
Loopback The internal Client will be connected to the internal Broker, with enrolled topic (subscribed).
Any published data on that topic, that arrived to the broker, will be passed to the internal client, and will be forward to the remote broker.
Any topic that the client is subscribed to at the remote broker, that was published, will be followed to the internal broker, and from there to all subscribed clients This will allow full forwarding of topics.