I am trying to integrate smart config into my mesh project. I am essentially using the smart config example but kicking off the smart config task when I get a MESH_EVENT_NO_PARENT_FOUND in the mesh handler. The log is
Has anyone managed to get this working? I managed to get it working before (http://esp32.io/viewtopic.php?f=21&t=90 ... 9be3a1b4ba) but that was some time ago and on a much earlier version.I (21552) mesh: <MESH_NWK_LOOK_FOR_NETWORK>need_scan:0x3, need_scan_router:0x1, look_for_nwk_count:60
I (21682) wifi_node: WIFINodeEvent: Unknown WiFi event [1]
I (21682) mesh: [S1]Lounge, f0:86:20:13:b4:33, channel:11, rssi:-39
I (21682) mesh: find router:[ssid_len:6]Lounge, rssi:-39, f0:86:20:13:b4:33(encrypted), new channel:11, old channel:0
I (21692) mesh: [S1]ignore Lounge, channel:11 due to different auth mode(3) from mine(open)
I (21702) mesh: [FIND][ch:11]AP:1, otherID:0, MAP:0, idle:0, candidate:0, root:0[00:00:00:00:00:00]<scan router>
I (21712) mesh: [FIND:60]fail to find a network, channel:0, cfg<channel:11, router:Lounge, 00:00:00:00:00:00>
I (21722) mesh: <MESH_NWK_LOOK_FOR_NETWORK>need_scan:0x3, need_scan_router:0x0, look_for_nwk_count:61
I (21732) mesh: <MESH_NWK_LOOK_FOR_NETWORK>no parent found, set ROOTLESS, scan times:60, heap:176296
I (21742) mesh: <MESH_NWK_LOOK_FOR_NETWORK>router<cfg:00:00:00:00:00:00> is allowed to switch, find routers with SSID:Lounge
I (21742) mesh_node: MeshNodeEvent: <MESH_EVENT_NO_PARENT_FOUND>scan times:60
I (21752) mesh: <MESH_NWK_PARENT_DISCONNECTED>non-root, need_reselect:1
I (21762) HomeIoT: cbOnMeshNoParent: Parent has gone setting Meshconnected to false
I (21762) wifi_node: wifi_node_smart_config_task: setting SC type
I (21782) wifi_node: wifi_node_smart_config_task: starting SC
I (21782) smartconfig: smartconfig errno -1@sc_sniffer.c 573
I (21792) wifi_node: WIFINodeEvent: Unknown WiFi event [1]
I (21792) mesh: <WIFI_EVENT_SCAN_DONE>status:fail, num:1, id:188
I (21802) mesh: [FIND][ch:11]AP:1, otherID:0, MAP:0, idle:0, candidate:0, root:0[00:00:00:00:00:00]
I (21812) mesh: [FIND:61]fail to find a network, channel:0, cfg<channel:11, router:Lounge, 00:00:00:00:00:00>
I (21822) mesh: <MESH_NWK_LOOK_FOR_NETWORK>need_scan:0x3, need_scan_router:0x1, look_for_nwk_count:62
I (21842) smartconfig: SC version: V3.0.2
I (21842) smartconfig: smartconfig errno -1@sc_sniffer.c 535
I (21842) smartconfig: scan status 1
I (21892) smartconfig: smartconfig errno -1@sc_sniffer.c 535
I (21892) smartconfig: scan status 4
I (21942) smartconfig: smartconfig errno -1@sc_sniffer.c 535
I (21942) smartconfig: scan status 1
I (21992) smartconfig: smartconfig errno -1@sc_sniffer.c 535
I (21992) smartconfig: scan status 4
I (22042) smartconfig: smartconfig errno -1@sc_sniffer.c 535
I (22042) wifi_node: WIFINodeEvent: Unknown WiFi event [1]
I (22042) mesh: [FIND][ch:11]AP:0, otherID:0, MAP:0, idle:0, candidate:0, root:0[00:00:00:00:00:00]<scan router>
I (22042) mesh: [FIND:62]fail to find a network, channel:0, cfg<channel:11, router:Lounge, 00:00:00:00:00:00>
I (22052) mesh: <MESH_NWK_LOOK_FOR_NETWORK>need_scan:0x3, need_scan_router:0x0, look_for_nwk_count:63
I (22112) wifi_node: WIFINodeEvent: Unknown WiFi event [1]
I (22112) mesh: [FIND][ch:11]AP:1, otherID:0, MAP:0, idle:0, candidate:0, root:0[00:00:00:00:00:00]
I (22112) mesh: [FIND:63]fail to find a network, channel:0, cfg<channel:11, router:Lounge, 00:00:00:00:00:00>
Many thanks
Lee.