Hi Sir,
I tried XDK Mita demos from here https://developer.bosch.com/web/xdk/http1 and here https://developer.bosch.com/web/xdk/mqtt1
My purpose is to test HTTP & MQTT protocol for XDK through Eclipse Mita。However none of them work as expected. After I build project and flash bin file into XDK, the XDK will show "Invalid application". Below is screenshots:
How to find the root cause of this problem ?
Waitting for your response...
Hi,
1. You can set bootloader version in preferences.
2. Before building project, clean it.
Please refer attached screenshots.
Thank You 🙂
Hi Sir,
I have tried to change the bootloader from ‘Auto' to 1.0.0/1.1.0/1.2.0, and clean project everytime, but still meet same error message..Invalid application..
Is my Mita code wrong ?
application.mita Code:
package main;
import platforms.xdk110;
setup net : WLAN {
ssid = "Alexju";
authentication = Personal(psk = "ju123456");
}
setup hivemq : MQTT {
transport = net;
url = 'mqtt://broker.hivemq.com:1883';
clientId = 'myXdk';
var helloWorld = topic('hello/world');
}
every 5 second
{
hivemq.helloWorld.write('{"hello": "world"}');
}
Other project which does not use wifi works fine..
So I guess if the HTTP REST and MQTT code as above has something wrong..
Hi,
usually I solve this problem with "Add XDK Nature" feature.
Right-Click on the project -> Configure -> "Add Xdk Nature"