How to use DendritasMqtt.aia

I’d like to use DendritasMqtt.aia. But I don’t know how to program the ESP8266 to use it. Has someone a simple .ino example? Intel now I have only used the pubsubclient-software to communicate with my iobroker.

@Andres_Cotes, the author of the extension might be able to help you
Taifun

These .ino codes worked for me in MQTT, you can have a look.

http://kio4.com/arduino/117D_Wemos_IOT_Eclipse_AI2.htm

2 Problem:
No connection from ESP8266 to “iot.eclipse.org” but “test.mosquitto.org” works.

What do I have to write instead of:
var url = ‘ws://iot.eclipse.org/ws’,
in the mqtt_subscribe.htm to communicate with mosquitto? Perhaps:
var url = ‘ws://test.mosquitto.org/ws’,

3.Problem:

when I click on:
https://github.com/adafruit/io-issues/releases/download/mqttjs/mqtt.js
I receive: error not found
Is this OK?

When I click on mqtt.js I get a screen with a lot text (I think the .js file) I copied the text with STRG-A and put into in a mqtt.js file on my computer. Afterward I copied the file to my Android Handy into the folder:
/AppInventor/Assets/
an wrote in the mqtt_subscribe.htm:

Do you think that may work?

Greeting from Germany

Gerhard

Try first with a PlayStore app:


use mqtt:
-------mosquitto.org------
port: -----1883-------

username, password: empty

Now is:
mqtt.eclipse.org
and
mosquitto.org

if you want to put files into the assets of your proejct, then you have to go to the Media section of the designer and upload the files there
files only copied into the directory /AppInventor/assets will not help very much, because these will not be packed into the apk file while building the project

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.