Dear All,

Codes are modified referring to the experience shared by Sven Haugstetter in his earlier post in thread "MQTT Paho example for IBM IoT Foundation" and suggetion from Jedi Council Member regarding SUCCESS not resolved in MQTTClient.c. Below are the compilation errors and warnings:

A Errors:

12) recipe for target 'debug' failed    Makefile    /MQTT_Paho_RELEASEv0.1.1    line 50    C/C++ Problem
1) 'WLI_connectPassPhrase_t' undeclared (first use in this function)    mqttWifi.c /MQTT_Paho_RELEASEv0.1.1/source    line 80    C/C++ Problem
2) 'WLI_connectSSID_t' undeclared (first use in this function)    mqttWifi.c    /MQTT_Paho_RELEASEv0.1.1/source    line 79    C/C++ Problem
3) 'WLI_SUCCESS' undeclared (first use in this function)    mqttWifi.c    /MQTT_Paho_RELEASEv0.1.1/source    line 72    C/C++ Problem 
4) expected ';' before string constant    mqttWifi.c    /MQTT_Paho_RELEASEv0.1.1/source    line 79    C/C++ Problem
5) expected ';' before string constant    mqttWifi.c    /MQTT_Paho_RELEASEv0.1.1/source    line 80    C/C++ Problem
6) Field 'ipV4' could not be resolved    mqttWifi.c    /MQTT_Paho_RELEASEv0.1.1/source    line 86    Semantic Error
7) make\mingw32-make.exe[1]: *** [C:/XDK-Workbench/workspace/MQTT_Paho_RELEASEv0.1.1/debug/objects/mqttWifi.o] Error 1    MQTT_Paho_RELEASEv0.1.1             C/C++ Problem
8) make\mingw32-make.exe[1]: *** No rule to make target 'C:/XDK-Workbench/workspace/MQTT_Paho_RELEASEv0.1.1/debug/objects/paho/MQTTClient.o', needed by 'C:/XDK-Workbench/workspace/MQTT_Paho_RELEASEv0.1.1/debug/XDK_PAHO_DEMO.out'.  Stop. MQTT_Paho_RELEASEv0.1.1             C/C++ Problem
9) make\mingw32-make.exe[1]: *** Waiting for unfinished jobs....    MQTT_Paho_RELEASEv0.1.1 C/C++ Problem
10) mingw32-make: *** [debug] Error 2    MQTT_Paho_RELEASEv0.1.1             C/C++ Problem
11) recipe for target 'C:/XDK-Workbench/workspace/MQTT_Paho_RELEASEv0.1.1/debug/objects/mqttWifi.o' failed    MQTT_Paho_RELEASEv0.1.1        line 80    C/C++ Problem
12) recipe for target 'debug' failed    Makefile    /MQTT_Paho_RELEASEv0.1.1    line 50    C/C++ Problem
13) request for member 'ipV4' in something not a structure or union    mqttWifi.c /MQTT_Paho_RELEASEv0.1.1/source    line 86    C/C++ Problem
14) Symbol 'PAL_IP_ADDRESS_SIZE' could not be resolved mqttWifi.c /MQTT_Paho_RELEASEv0.1.1/source line 66    Semantic Error
15) Symbol 'WLI_SUCCESS' could not be resolved mqttWifi.c /MQTT_Paho_RELEASEv0.1.1/source line 72 Semantic Error
16) Symbol 'WLI_SUCCESS' could not be resolved mqttWifi.c /MQTT_Paho_RELEASEv0.1.1/source line 84 Semantic Error
17( Type 'NCI_ipSettings_t' could not be resolved mqttWifi.c /MQTT_Paho_RELEASEv0.1.1/source line 64 Semantic Error
18) Type 'WLI_connectPassPhrase_t' could not be resolved mqttWifi.c /MQTT_Paho_RELEASEv0.1.1/source line 69    Semantic Error
19) Type "WLI_connectPassPhrase_t' could not be resolved mqttWifi.c /MQTT_Paho_RELEASEv0.1.1/source line 80    Semantic Error
20) Type 'WLI_connectSSID_t' could not be resolved mqttWifi.c    /MQTT_Paho_RELEASEv0.1.1/source line 68 Semantic Error
21) Type 'WLI_connectSSID_t' could not be resolved mqttWifi.c    /MQTT_Paho_RELEASEv0.1.1/source line 79 Semantic Error
22) unknown type name 'NCI_ipSettings_t' mqttWifi.c /MQTT_Paho_RELEASEv0.1.1/source line 64 C/C++ Problem
23) unknown type name 'WLI_connectPassPhrase_t' mqttWifi.c    /MQTT_Paho_RELEASEv0.1.1/source line 69    C/C++ Problem
24) unknown type name 'WLI_connectSSID_t' mqttWifi.c /MQTT_Paho_RELEASEv0.1.1/source line 68 C/C++ Problem
B Warnings: 
format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat]    mqttWifi.c    /MQTT_Paho_RELEASEv0.1.1/source    line 81    C/C++ Problem
format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat]    mqttWifi.c    /MQTT_Paho_RELEASEv0.1.1/source    line 92    C/C++ Problem
implicit declaration of function 'NCI_getIpSettings' [-Wimplicit-function-declaration]    mqttWifi.c    /MQTT_Paho_RELEASEv0.1.1/source    line 85    C/C++ Problem
implicit declaration of function 'WLI_connectWPA' [-Wimplicit-function-declaration]    mqttWifi.c    /MQTT_Paho_RELEASEv0.1.1/source    line 84    C/C++ Problem
implicit declaration of function 'WLI_init' [-Wimplicit-function-declaration]    mqttWifi.c    /MQTT_Paho_RELEASEv0.1.1/source    line 72    C/C++ Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\lib\BLEStack\Alpwise\Core_Stack).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\lib\BLEStack\Alpwise\Core_Stack\Interfaces).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\lib\BLEStack\Alpwise\Core_Stack\Interfaces\ATT).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\lib\BLEStack\Alpwise\Core_Stack\Interfaces\Services).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\lib\BLEStack\Alpwise\Service\Data_Exchange_Service\Interfaces).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\lib\bstlib_bsd\BMA2x2).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\lib\bstlib_bsd\BME280).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\lib\bstlib_bsd\BMG160).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\lib\bstlib_bsd\BMI160).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\lib\bstlib_bsd\BMM050).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\lib\bstlib_bsd\BMP180).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\lib\bstlib_bsd\BMP280).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\lib\EMLib\CMSIS\Include).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\lib\EMLib\Device\SiliconLabs\EFM32GG\Include).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\lib\EMLib\emlib\inc).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\lib\EMLib\usb\inc).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\lib\fatfs\src).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\lib\FreeRTOS\source\include).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\lib\FreeRTOS\source\portable\ARM_CM3).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\lib\ServalStack\api).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\lib\ServalStack\pal).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\lib\ServalStack\src\inc).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\lib\wifi\TI\simplelink\include).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\lib\wifi\TI\simplelink\source).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\common\generic\DBG_assert).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\common\generic\LOG).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\common\generic\Ringbuffer).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\common\generic\UPA_userPageAccess).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\common\generic\URU_usbResetUtility).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\core\OS\OS_operatingSystem).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\core\OS\OS_sleepMgt).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\core\OS\OS_sleepMgt\default_config).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\core\uC\ADC).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\core\uC\FSH).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\core\uC\I2C).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\core\uC\I2C\SID).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\core\uC\I2C\SID\EFM32).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\core\uC\PTD).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\core\uC\SPI).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\core\uC\UART).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\core\uC\USB).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\BLE\BLE_alpwiseDriver\BLE_hostInterface).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\BLE\BLE_alpwiseDriver\BLE_radioInterface).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\BLE\BLE_alpwiseDriver\BLE_serialDriver).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\BLE\BLE_alpwiseDriver\BLE_stateHandler).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\BLE\BLE_alpwiseDriver\BLE_system).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\BST).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\bst\ACCEL).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\BST\AKU).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\bst\ALS).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\bst\ALS\MAX44009).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\bst\BMA).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\bst\BMI).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\bst\BST_Support).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\bst\Environmental\BME280).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\bst\Gyroscope\BMG160).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\bst\MAG).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\sensors).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\sensors\Accelerometer\include).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\sensors\Accelerometer\src\efm32).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\sensors\Environmental\include).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\sensors\Environmental\src\efm32).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\sensors\GyroScope\include).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\sensors\GyroScope\src\efm32).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\sensors\lightsensor\include).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\sensors\lightsensor\src\efm32).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\sensors\Magnetometer\include).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\sensors\Magnetometer\src\efm32).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\sensors\RMP_sensorRemap).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\api\include\Network\IP).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\api\include\Radio\WLAN).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\api\src\Network\IP).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\api\src\Radio\WLAN).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\app\swPfConfig).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\drv\SDC_sdCardDriver).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\drv\WID_wifiDriver).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\HWconfig).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\HWconfig\HW_Sample_C1).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\HWconfig\HW_Sample_C1\PDC_pinDefaultConfig).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\PAL_XDK).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\PAL_XDK\inc).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\PAL_XDK\PAL_commBuffer).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\PAL_XDK\PAL_scheduler).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\PAL_XDK\PAL_socketMonitor).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\PAL_XDK\PAL_timerRTOS).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\SSU_systemStartUp).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\SSU_systemStartUp\CSU).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
Invalid project path: Include path not found (MQTT_Paho\paho).    MQTT_Paho_RELEASEv0.1.1        pathentry    Path Entry Problem
each undeclared identifier is reported only once for each function it appears in    mqttWifi.c    /MQTT_Paho_RELEASEv0.1.1/source    line 72    C/C++ Problem

Thaks for any advice!

Ms. Zhu

0 (0 Votes)
RE: Errors in mqttWifi.c & Makefile: MQTT Paho example for IBM IoT Foundati
Answer
5/15/17 5:02 PM as a reply to Bochun Zhu.

Hello Bochun,

your console log indicates that you are using an old deprecated MQTT paho demo project. The console log shows that interfaces like WLI_connectPassPhrase_t are missing.

This Wi-Fi implementation is included in XDK Workbench Versions below 1.7.0.

There are two solutions available to solve this. The first option is to download and install the XDK Workbench 1.6.0 and import your project there. Otherwise you can download the latest version 1.4 of the MQTT Paho demo of the XDK Community and make your changes to it.

Personally I recommend to use the second solution and download the latest version of the MQTT Paho example and work on the XDK Workbench 2.0.1 since it would prevent issues that are already solved in recent versions.

Please tell me if this is helpful and do not hesitate to ask if you have further questions.

Kind regards,
Franjo

0 (0 Votes)
RE: Errors in mqttWifi.c & Makefile: MQTT Paho example for IBM IoT Foundati
Answer
5/17/17 12:14 PM as a reply to Franjo Stjepandic.

Hi Franjo,

Thank you very much,

I redownloaded MQTT_Paho_latest.zip from https://xdk.bosch-connectivity.com/demos and  paho.mqtt.embedded-c-master.zip from https://github.com/eclipse/paho.mqtt.embedded-c. Follow tutorial "Getting Started Guide with MQTT(Paho Demo)" and forum instruction. (workbenck version 2.0.1)
 

Now the errors are:

'Client' could not be resolved mqttPahoClient.c and mqttPahoClient.h and Makefile

Description Resource Path Location Type
expected identifier or '(' before '&' token mqttPahoClient.c /MQTT_Paho/source line 190 C/C++ Problem
make\mingw32-make.exe[1]: *** [C:/XDK-Workbench/workspace/MQTT_Paho/debug/objects/mqttButton.o] Error 1 MQTT_Paho    C/C++ Problem
make\mingw32-make.exe[1]: *** [C:/XDK-Workbench/workspace/MQTT_Paho/debug/objects/mqttInit.o] Error 1 MQTT_Paho    C/C++ Problem
make\mingw32-make.exe[1]: *** [C:/XDK-Workbench/workspace/MQTT_Paho/debug/objects/mqttPahoClient.o] Error 1 MQTT_Paho    C/C++ Problem
make\mingw32-make.exe[1]: *** No rule to make target 'C:/XDK-Workbench/workspace/MQTT_Paho/debug/objects/paho/MQTTClient.o', needed by 'C:/XDK-Workbench/workspace/MQTT_Paho/debug/XDK_PAHO_DEMO.out'.  Stop. MQTT_Paho    C/C++ Problem
make\mingw32-make.exe[1]: *** Waiting for unfinished jobs.... MQTT_Paho    C/C++ Problem
mingw32-make: *** [debug] Error 2 MQTT_Paho    C/C++ Problem
recipe for target 'C:/XDK-Workbench/workspace/MQTT_Paho/debug/objects/mqttButton.o' failed MQTT_Paho  line 80 C/C++ Problem
recipe for target 'C:/XDK-Workbench/workspace/MQTT_Paho/debug/objects/mqttInit.o' failed MQTT_Paho  line 80 C/C++ Problem
recipe for target 'C:/XDK-Workbench/workspace/MQTT_Paho/debug/objects/mqttPahoClient.o' failed MQTT_Paho  line 80 C/C++ Problem
recipe for target 'debug' failed Makefile /MQTT_Paho line 50 C/C++ Problem
Type 'Client' could not be resolved mqttPahoClient.c /MQTT_Paho/source line 73 Semantic Error
Type 'Client' could not be resolved mqttPahoClient.h /MQTT_Paho/source line 54 Semantic Error
unknown type name 'Client' mqttPahoClient.c /MQTT_Paho/source line 73 C/C++ Problem
unknown type name 'Client' mqttPahoClient.h /MQTT_Paho/source line 54 C/C++ Problem
'buf' defined but not used [-Wunused-variable] mqttPahoClient.c /MQTT_Paho/source line 49 C/C++ Problem
'readbuf' defined but not used [-Wunused-variable] mqttPahoClient.c /MQTT_Paho/source line 50 C/C++ Problem
 

The above will be posted in a seperate thread.

Ms. Zhu

0 (0 Votes)
RE: Errors in mqttWifi.c & Makefile: MQTT Paho example for IBM IoT Foundati
Answer
5/17/17 2:20 PM as a reply to Bochun Zhu.

Hello Bochun,

I am glad, that I could help you.
I  will reply to the new issue in your other thread.

Please do not hesitate to ask if you have further questions.

Kind regards,
Franjo

0 (0 Votes)