Topic: Moving from Cloud Computing to Fog Computing: How the “Internet of Things will Change the Way We Live and Work
Speaker: Jeff Hagins, Co-founder & CTO, SmartThings
19. # ask the switch to turn on the light
switchDevice.sendZclCommandNoAck(switchPort, switchEndPoint,
lightDevice, lightEndPoint,
ZCL_CLUSTER_ID_GEN_ON_OFF,
ZCL_FRAME_CLIENT_SERVER_DIR,
switchEndPoint.onCmd())
t = Timer(toggleDelay, name = ”On command watchdog")
t.start()
# we should get a notification
alt(
[
[ lightPort.RECEIVE(lightEndPoint.mw_incomingZcl(), value
= 'incomingZclMsg'),
lambda: t.stop()
],
[ lightPort.RECEIVE(),
lambda: REPEAT
],
[ t.TIMEOUT,
lambda: stop()
],
])
if value and value('incomingZclMsg')[1]:
_msg = value('incomingZclMsg')[1]
lightEndPoint.incomingZclCmd(lightPort, lightDevice,
_msg['clusterId'],
_msg['cmdCode'], _msg['data'])
Switch1.on()
// from anywhere
// without regard for protocol
// without regard for device location
This Instead of This
20. Extend Cloud Computing to become
Fog Computing so that we can put
intelligence close to the devices,
even mobile ones