Plugin: Waiting for Device Status update
Posted: Sun Mar 21, 2010 8:03 pm
Hi,
I am putting together a plugin to control Indigo from the Cisco IP Phone Display using the XML SDK.
Any best practice on how I can ensure commands have been sent and the database updated after I use any of the device control functions ?
For example: cherrypy.server.indigoDb.DeviceTurnOn(cherrypy.server.indigoConn, device, cherrypy.request.remote.ip)
After calling this function, I refresh the webpage, but I still see the "old" values for the device states.
How can I wait with the page generation until the device has (or not) responded and Indigo has updated the database?
best regards,
Oliver.
I am putting together a plugin to control Indigo from the Cisco IP Phone Display using the XML SDK.
Any best practice on how I can ensure commands have been sent and the database updated after I use any of the device control functions ?
For example: cherrypy.server.indigoDb.DeviceTurnOn(cherrypy.server.indigoConn, device, cherrypy.request.remote.ip)
After calling this function, I refresh the webpage, but I still see the "old" values for the device states.
How can I wait with the page generation until the device has (or not) responded and Indigo has updated the database?
best regards,
Oliver.