fbpx
Magicblocks Lesson 14: Mobile App 03
Magicblocks App Lesson 3

Configure app with Magicblocks.io

This is custom heading element

Configure with Magicblocks.io

Go to Magicblocks.io and create a free account.

To receive data from the app create the following flow,

For the ‘MQTT in node’ the same details you entered in the settings page should be given. They are,

  1. Hostname
  2. Port
  3. Publish Topic in Topic field
  4. QoS
  5. Username (Only if given in the app)
  6. Password (Only if given in the app)

To send data from Magicblocks.io to the app create the following flow,

For the ‘MQTT out node’ The same details you entered in the settings page should be given. They are,

  1. Hostname
  2. Port
  3. QoS
  4. Username (Only if given in the app)
  5. Password (Only if given in the app)

In the Inject node these adjustments should be made.

  1. Payload should be JSON and for testing purposes use the following JSON.
    { “title”:”hello”, “text”:”Welcome to magicblocks” }
  2. Topic should be given the same Subscribe Topic in your app settings.

When you want to publish data from magicblocks.io click the inject node.

Publish to topic

Tap on any sensor/s to send data to the specified topic.

Subscribe to topic

When data is received for the topic a popup notification will appear on your phone.

Related Posts
Leave a Reply

Your email address will not be published.Required fields are marked *