@@ -72,6 +72,18 @@ void DeviceCallbacks::DeviceEventCallback(const ChipDeviceEvent * event, intptr_
72
72
OnInternetConnectivityChange (event);
73
73
break ;
74
74
75
+ case DeviceEventType::kCHIPoBLEConnectionEstablished :
76
+ ChipLogProgress (DeviceLayer, " CHIPoBLE Connection Established" );
77
+ break ;
78
+
79
+ case DeviceEventType::kCHIPoBLEConnectionClosed :
80
+ ChipLogProgress (DeviceLayer, " CHIPoBLE Connection Closed" );
81
+ break ;
82
+
83
+ case DeviceEventType::kCHIPoBLEAdvertisingChange :
84
+ ChipLogProgress (DeviceLayer, " CHIPoBLE advertising has changed" );
85
+ break ;
86
+
75
87
case DeviceEventType::kInterfaceIpAddressChanged :
76
88
if ((event->InterfaceIpAddressChanged .Type == InterfaceIpChangeType::kIpV4_Assigned ) ||
77
89
(event->InterfaceIpAddressChanged .Type == InterfaceIpChangeType::kIpV6_Assigned ))
@@ -82,6 +94,15 @@ void DeviceCallbacks::DeviceEventCallback(const ChipDeviceEvent * event, intptr_
82
94
// newly selected address.
83
95
chip::app::DnssdServer::Instance ().StartServer ();
84
96
}
97
+ if (event->InterfaceIpAddressChanged .Type == InterfaceIpChangeType::kIpV6_Assigned )
98
+ {
99
+ ChipLogProgress (DeviceLayer, " Initializing route hook..." );
100
+ ameba_route_hook_init ();
101
+ }
102
+ break ;
103
+
104
+ case DeviceEventType::kCommissioningComplete :
105
+ ChipLogProgress (DeviceLayer, " Commissioning Complete" );
85
106
break ;
86
107
}
87
108
}
@@ -122,9 +143,6 @@ void DeviceCallbacks::OnInternetConnectivityChange(const ChipDeviceEvent * event
122
143
{
123
144
ChipLogProgress (DeviceLayer, " IPv6 Server ready..." );
124
145
chip::app::DnssdServer::Instance ().StartServer ();
125
-
126
- ChipLogProgress (DeviceLayer, " Initializing route hook..." );
127
- ameba_route_hook_init ();
128
146
#if CHIP_DEVICE_CONFIG_ENABLE_OTA_REQUESTOR
129
147
// Init OTA requestor only when we have gotten IPv6 address
130
148
if (!isOTAInitialized)
0 commit comments