|  Developer
Updated on May 17, 2022

send_response

  • Send response on setItemValueCommand request if gateway has custom setItemValueResponsePolicy.
Edit

  • params: operation_id (string), result (table), error (table)
  • return: none.
Edit
				
					local core = require("core")

-- item value set logic

local result = {
    text = "Hi there!"
}
local error = nil
core.send_response(params.operation_id, result, error)				
			
Edit
Edit
Edit
Field Type Description
text string Custom text result

Example:

				
					result = {
    text = "Hi there!"
}				
			
Edit
Edit
				
					error = nil				
			
Edit
				
					error = {
    code = <code_number>,
    data = "<data_string>",
    message = "<message_string>"
}				
			
Edit
Code Data Message
3740 “custom_error” “custom error text”