Hey, Todd @TAustin , thanks for building this out! I ran into a problem when using the Master setup script to build the SDK (see next error) so I wound up doing a mix of mastersetup steps and manual stuff using your config guide, without success. The first issue I hit was:
In file included from src/easysetup/http/tcp/iot_easysetup_httpd.c:23:
src/include/http/iot_easysetup_http.h:22:10: fatal error: iot_easysetup_http_impl.h: No such file or directory
#include "iot_easysetup_http_impl.h"
I thought I found a workaround by building without using your sdkbuildsetup first, as building it without mastersetup seemed to work. I was able to build the SDK, configure the example app, get the Pi to run the MyPiTestAccessPoint AP, but I got stuck at the point of adding the app to the Smartthings app. I’d add using the QR code, select the location/room, and the app would stay on the “Start the device app…” screen, eventually timing out with the 05-300 error. It seems like there was no communication between my phone and the PI.
I played with it for most of the day and then after actually reading through the contents of sdkbuildsetup today, I realized that it was doing more than tweaking the Makefile, so I scrapped what I had done and started over.
In the midst of figuring out my next dirty workaround (haha) I think I discovered the root of the initial issue–back in April, Kwang-Hui moved some of the easysetup http stuff (specifically the problematic iot_easysetup_http_impl_h) to /src/port/http/socket
. So this time, my workaround was just to copy those files back to /src/include/http
and voilla, I was able to build the SDK without the pesky errors. I rebuilt the example app and tested again with no joy–same errors as before (posting below.)
./example
D (1624477165:620) [IoT]: iot_nv_init(197) > >>>HIT<<<
I (1624477165:621) [IoT]: _dump_device_info(706) > firmware_version: switch_example_001
I (1624477165:621) [IoT]: iot_bsp_wifi_init(149) > [rpi] iot_bsp_wifi_init
I (1624477165:621) [IoT]: iot_bsp_wifi_init(150) > [rpi] wifi module version 20210405
I (1624477165:668) [IoT]: iot_bsp_wifi_init(164) > [rpi] Ethernet connection available: eth0
I (1624477165:668) [IoT]: iot_bsp_wifi_init(182) > [rpi] Wifi AP device wlan0 found
I (1624477165:668) [IoT]: iot_bsp_wifi_init(230) > [rpi] Wifi Initialization Done
I (1624477165:669) [IoT]: st_conn_init(1369) > stdk_version : 1.6.2
I (1624477165:669) [IoT]: st_conn_start(1839) > st_conn_start start (no-pin)
D (1624477165:669) [IoT]: iot_security_be_init(1904) > security backend is 'software'
D (1624477165:670) [IoT]: iot_os_eventgroup_set_bits(332) > write_size = 3 (0)
D (1624477165:670) [IoT]: iot_os_eventgroup_wait_bits(301) > read_size = 3 (0)
D (1624477165:670) [IoT]: _iot_main_task(1118) > cmd: 10
I (1624477165:670) [IoT]: _do_iot_main_command(499) > curr_main_cmd:10, curr_main_state:-1/-1
D (1624477165:670) [IoT]: iot_os_eventgroup_set_bits(332) > write_size = 3 (0)
I (1624477165:671) [IoT]: _do_update_timeout(200) > Current timeout : 100000 for -1/0
I (1624477165:671) [IoT]: _do_status_report(304) > Call usr status_cb with 1/0
iot_status: 1, lv: 0
D (1624477165:671) [IoT]: iot_os_eventgroup_set_bits(327) > already set 0x00000001 (0)
D (1624477165:671) [IoT]: iot_os_eventgroup_wait_bits(301) > read_size = 3 (0)
D (1624477165:672) [IoT]: _iot_main_task(1118) > cmd: 2
I (1624477165:672) [IoT]: _do_iot_main_command(499) > curr_main_cmd:2, curr_main_state:-1/0
D (1624477165:672) [IoT]: iot_nv_get_prov_data(261) > >>>HIT<<<
D (1624477165:672) [IoT]: iot_nv_get_wifi_prov_data(322) > >>>HIT<<<
D (1624477165:672) [IoT]: _iot_nv_io_storage(103) > id = 1, mode = 1
D (1624477165:672) [IoT]: iot_security_be_init(1904) > security backend is 'software'
D (1624477165:672) [IoT]: iot_security_storage_read(114) > id:1
D (1624477165:672) [IoT]: _iot_security_be_bsp_fs_load(187) > id = 1
D (1624477165:673) [IoT]: _iot_security_be_bsp_fs_load_from_nv(100) > id = 1
D (1624477165:673) [IoT]: iot_bsp_nv_get_data_path(24) > >>>HIT<<<
D (1624477165:673) [IoT]: _iot_security_be_bsp_fs_storage_id2filename(85) > storage file = './WifiProvStatus'
D (1624477165:673) [IoT]: iot_bsp_fs_open(46) > file doesn't exist
E (1624477165:673) [IoT]: _iot_security_be_bsp_fs_load_from_nv(129) > iot_bsp_fs_open(./WifiProvStatus) = -1208
D (1624477165:673) [IoT]: iot_security_storage_read(141) > id:1 not found
D (1624477165:673) [IoT]: _iot_nv_io_storage(123) > nv '1' does not exist
D (1624477165:673) [IoT]: iot_nv_get_wifi_prov_data(343) > Wifi Prov Status : read failed
D (1624477165:674) [IoT]: iot_nv_get_prov_data(267) > get wifi prov fail
D (1624477165:674) [IoT]: _do_iot_main_command(626) > There are no prov data in NV
D (1624477165:674) [IoT]: iot_nv_erase(1006) > >>>HIT<<<
D (1624477165:674) [IoT]: _iot_nv_io_storage(103) > id = 10, mode = 3
D (1624477165:674) [IoT]: iot_security_be_init(1904) > security backend is 'software'
D (1624477165:674) [IoT]: iot_security_storage_remove(191) > id:10
D (1624477165:675) [IoT]: _iot_security_be_bsp_fs_remove(309) > id = 10
D (1624477165:675) [IoT]: iot_bsp_nv_get_data_path(24) > >>>HIT<<<
D (1624477165:675) [IoT]: _iot_security_be_bsp_fs_storage_id2filename(85) > storage file = './DeviceID'
D (1624477165:675) [IoT]: iot_bsp_fs_remove(138) > remove fail [No such file or directory]
D (1624477165:675) [IoT]: iot_security_storage_remove(211) > id:10 not found
D (1624477165:675) [IoT]: _iot_nv_io_storage(165) > nv '10' does not exist
D (1624477165:675) [IoT]: iot_nv_erase(1014) > file does not exist
D (1624477165:676) [IoT]: iot_os_eventgroup_set_bits(332) > write_size = 3 (0)
D (1624477165:676) [IoT]: iot_os_eventgroup_set_bits(327) > already set 0x00000001 (0)
I (1624477165:676) [IoT]: _do_cmd_tout_check(1041) > New state updated for 0
D (1624477165:676) [IoT]: iot_os_eventgroup_wait_bits(301) > read_size = 3 (0)
D (1624477165:676) [IoT]: _iot_main_task(1118) > cmd: 10
I (1624477165:676) [IoT]: _do_iot_main_command(499) > curr_main_cmd:10, curr_main_state:0/0
I (1624477165:677) [IoT]: iot_bsp_wifi_set_mode(871) > [rpi] Requested mode SCAN
I (1624477165:677) [IoT]: _perform_scan(1622) > [rpi] Running Wifi AP scan using wlan0
I (1624477166:401) [IoT]: iot_bsp_wifi_set_mode(889) > [rpi] WiFi scan completed. 5 APs found
I (1624477166:401) [IoT]: iot_bsp_wifi_get_scan_result(1596) > [rpi] Get scan result requested; 5 available
I (1624477166:401) [IoT]: _do_update_timeout(200) > Current timeout : 300000 for 0/1
D (1624477166:401) [IoT]: iot_os_eventgroup_set_bits(332) > write_size = 3 (0)
I (1624477166:401) [IoT]: _do_cmd_tout_check(1041) > New state updated for 1
I (1624477166:401) [IoT]: _do_status_report(304) > Call usr status_cb with 2/1
iot_status: 2, lv: 1
D (1624477166:401) [IoT]: iot_os_eventgroup_wait_bits(301) > read_size = 3 (0)
W (1624477466:469) [IoT]: _do_cmd_tout_check(1028) > New state changing timeout
D (1624477466:469) [IoT]: iot_os_eventgroup_set_bits(332) > write_size = 3 (0)
D (1624477466:469) [IoT]: iot_os_eventgroup_wait_bits(301) > read_size = 3 (0)
D (1624477466:469) [IoT]: _iot_main_task(1118) > cmd: 10
I (1624477466:470) [IoT]: _do_iot_main_command(499) > curr_main_cmd:10, curr_main_state:1/1
W (1624477466:470) [IoT]: _do_recovery(1419) > state changing fail for 1, curr_state :1
E (1624477466:470) [IoT]: _do_recovery(1477) > Failed process [1] on time, STOP
D (1624477466:470) [IoT]: iot_os_eventgroup_set_bits(332) > write_size = 3 (0)
I (1624477466:470) [IoT]: _do_update_timeout(200) > Current timeout : 4294967295 for 1/-2
I (1624477466:471) [IoT]: _do_status_report(304) > Call usr status_cb with 2/3
iot_status: 2, lv: 3
D (1624477466:471) [IoT]: iot_os_eventgroup_set_bits(327) > already set 0x00000001 (0)
I (1624477466:471) [IoT]: _do_cmd_tout_check(1041) > New state updated for -2
D (1624477466:471) [IoT]: iot_os_eventgroup_wait_bits(301) > read_size = 3 (0)
D (1624477466:471) [IoT]: _iot_main_task(1118) > cmd: 10
I (1624477466:472) [IoT]: _do_iot_main_command(499) > curr_main_cmd:10, curr_main_state:-2/-2
W (1624477466:472) [IoT]: _do_state_updating(1700) > Iot-core task will be stopped, needed ext-triggering
I (1624477466:472) [IoT]: iot_bsp_wifi_set_mode(851) > [rpi] Requested mode OFF
I (1624477466:473) [IoT]: _do_status_report(304) > Call usr status_cb with 1/0
iot_status: 1, lv: 0
D (1624477466:473) [IoT]: iot_os_eventgroup_set_bits(332) > write_size = 3 (1)
I (1624477466:473) [IoT]: _do_update_timeout(200) > Current timeout : 4294967295 for -1/-1
I (1624477466:473) [IoT]: _do_status_report(295) > Unsupported state -1 for 0/0
D (1624477466:473) [IoT]: iot_os_eventgroup_wait_bits(301) > read_size = 3 (1)
E (1624477466:473) [IoT]: st_conn_start(1897) > Can't go to PROV_CONFIRM (0x2)
I (1624477466:473) [IoT]: st_conn_start(1899) > st_conn_start done (-7)
D (1624477466:473) [IoT]: iot_os_eventgroup_set_bits(332) > write_size = 3 (0)
D (1624477466:473) [IoT]: iot_os_eventgroup_wait_bits(301) > read_size = 3 (0)
I don’t know what else to check–any thoughts? I’m running this on a Pi 3 B with a fresh install of the 64bit version of Rasbian Lite.