def register_device_event(self, callback):
return self.lib.tdRegisterDeviceEvent(callback)<EOL>
Register a new device event callback handler.

        See :ref:`event-example` for more information.

        :return: the callback id