|  Developer
Updated on November 23, 2021

add_device(device_info)

  • Add 2GIG device by serial.
Edit
  • device_info: table
Field Type Required Description
tx_ids table + List of device TXIDs (7-digit TXID)
model string Device model (case insensitive). List of supported devices
device_type string Device type
Edit
  • nil
Edit
Edit
				
					local twogig = require "2gig"

twogig.add_device({
    tx_ids = { 571480 },
    model = "2GIG-PANIC1-345"
})				
			
Edit
				
					local twogig = require "2gig"

twogig.add_device({
    tx_ids = { 571480, 571481 },
    model = "2GIG-FF-345"
})