|  Developer
Updated on May 17, 2022

send_device_checked_broadcast

  • Send broadcast with progress or result of device check.
Edit

  • params: broadcast_data (table)
Field Type Required Description
device_id string + Id of target device. It should be only device of current gateway
status string + Status of checking process. Possible values: started, finished, failed.
completed int Progress of operation
error object Description of failed status
error.code int + Code of error
error.data string + String token of error
error.message string Detailed description of error
  • return: none
Edit
Broadcast Description
hub.device.checked Informs about progress or result of device check
Edit
				
					require "core"

core.send_device_checked_broadcast( {
    device_id = params.device_id,
    status = "finished",
    completed = 100
} )