5.7.2 Demo Console Log
On the terminal window, enter the username through the terminal window.
-- WINC1500 pubnub cloud example -- -- XXXXX_XPLAINED_PRO -- -- Compiled: xxx x xxxx xx:xx:xx -- (APP)(INFO)Chip ID 1503a0 (APP)(INFO)Firmware ver : 19.5.2 Svnrev 13445 (APP)(INFO)Firmware Build xxx x xxxx Time xx:xx:xx (APP)(INFO)Firmware Min driver ver : 19.3.0 (APP)(INFO)Driver ver: 19.5.2 (APP)(INFO)Driver built at xxx x xxxx xx:xx:xx main: PubNub configured with following settings: main: - Publish key: "demo", Subscribe key: "demo", Channel: "WINC1500_F8:C6". main: Wi-Fi connecting to AP using hardcoded credentials... m2m_wifi_state: M2M_WIFI_RESP_CON_STATE_CHANGED: CONNECTED m2m_wifi_state: M2M_WIFI_REQ_DHCP_CONF: IP is 172.16.1.105 main: subscribe event, PNR_OK main: subscribe event, interval. socket_resolve_cb: pubsub.pubnub.com resolved with IP 54.249.82.178 main: subscribe event, interval. main: publish event: {{"device":"WINC1500_F8:C6", "temperature":"25.50", "light":"95", "led":"0"}} main: subscribe event, PNR_OK main: received message: {"device":"WINC1500_F8:C6", "temperature":"25.50", "light":"95", "led":"0"} main: subscribe event, interval. main: publish event: {{"device":"WINC1500_F8:C6", "temperature":"25.50", "light":"96", "led":"0"}} main: subscribe event, PNR_OK main: subscribe event, interval. main: received message: {"device":"WINC1500_F8:C6", "temperature":"25.50", "light":"96", "led":"0"} main: subscribe event, interval. main: publish event: {{"device":"WINC1500_F8:C6", "temperature":"25.50", "light":"96", "led":"0"}}
When the PubNub cloud console is configured as mentioned, then SAM D21 will get a message as shown below.
main: received message: {"device":"WINC1500_F9:A7", "temperature":"26.0", "light":"95", "led":"0"} main: subscribe event, interval. main: received LED control message: {"led":"on"} main: subscribe event, interval. main: publish event: {{"device":"WINC1500_F9:A7", "temperature":"26.0", "light":"96", "led":"1"}} main: subscribe event, interval. main: received LED control message: {"led":"off"}