hub.network.changed
- Sends information to the UI if changes occur to a network interface.
				
				Edit
			
			- hub.network.wifi.try_connect
- hub.network.modem.try_connect
- Any internal or external factor causing network interfaces to go up/down or change parameters.
				
				Edit
			
			>The result fields and their meanings are listed in hub.network.get. A ‘null’ value in a field means the information is not available.
Additional Fields
| Field | Type | Required | Description | 
|---|---|---|---|
| syncNotification | bool | + | Special mark to request data synchronization between the cloud and the controller. This is only true if the status of an interface has changed. | 
				
				Edit
			
			
							Error codes and messages are the same as described in the ‘interfaces.error’ section of hub.network.get						
				
				
				Edit
			
			
				
				Edit
			
			
				
					{
    "id": "ui_broadcast",
    "msg_subclass": "hub.network.changed",
    "result": {
        "syncNotification":true,
        "interfaces": [
            {
                "_id": "eth0",
                "internetAvailable": false,
                "ipv4": {
                    "dns": null,
                    "gateway": null,
                    "ip": null,
                    "mask": null
                },
                "status": "down"
            }
        ]
    }
}				
			
            
				
				Edit
			
			
				
					{
    "id": "ui_broadcast",
    "msg_subclass": "hub.network.changed",
    "result": {
        "syncNotification":true,
        "interfaces": [
            {
                "_id": "eth0",
                "internetAvailable": true,
                "ipv4": {
                    "dns": [
                        "192.168.0.1"
                    ],
                    "gateway": "192.168.0.1",
                    "ip": "192.168.0.228",
                    "mask": "255.255.255.0"
                },
                "status": "up"
            }
        ]
    }
}				
			
            
				
				Edit
			
			
				
					{
    "id": "ui_broadcast",
    "msg_subclass": "hub.network.changed",
    "result": {
        "syncNotification":false,
        "interfaces": [
            {
                "_id": "eth0",
                "internetAvailable": false
            }
        ]
    }
}				
			
            
				
				Edit
			
			
				
					{
    "id": "ui_broadcast",
    "msg_subclass": "hub.network.changed",
    "result": {
        "syncNotification":true,
        "interfaces": [
            {
                "_id": "wlan0",
                "hwaddr": "a9:b8:c7:d6:e5:f4",
                "internetAvailable": true,
                "ipv4": {
                    "dns": [
                        "192.168.10.10",
                        "1.1.1.1",
                        "8.8.8.8"
                    ],
                    "gateway": "192.168.10.1",
                    "ip": "192.168.11.142",
                    "mask": "255.255.254.0"
                },
                "status": "up",
                "wifi": {
                    "network": {
                        "bssid": "ab:cd:ef:01:23:45",
                        "encryption": "psk2",
                        "key": "super_wifi_network",
                        "mode": "sta",
                        "ssid": "super_wifi_password"
                    },
                    "region": "00"
                }
            }
        ]
    }
}				
			
            
				
				Edit
			
			
				
					{
    "id": "ui_broadcast",
    "msg_subclass": "hub.network.changed",
    "result": {
        "syncNotification":false,
        "interfaces": [
            {
                "_id": "wlan0",
                "error": {
                    "code": -32500,
                    "data": "network.connection.failed",
                    "message": "Could not connect to the network"
                },
                "hwaddr": "a9:b8:c7:d6:e5:f4",
                "wifi": {
                    "network": {
                        "bssid": "ab:cd:ef:01:23:45",
                        "encryption": "psk2",
                        "key": "super_wifi_network",
                        "mode": "sta",
                        "ssid": "awful_wifi_password"
                    },
                    "region": "00"
                }
            }
        ]
    }
}
{
    "id": "ui_broadcast",
    "msg_subclass": "hub.network.changed",
    "result": {
        "interfaces": [
            {
                "_id": "wlan0",
                "error": null,
                "hwaddr": null,
                "wifi": {
                    "network": null,
                    "region": null
                }
            }
        ]
    }
}				
			
             
                                    