class XBee::Series2APIModeInterface

Public Instance Methods

init_ota_upgrade(password = nil, remote_address = 0x000000000000ffff, remote_network_address = 0xfffe) click to toggle source

Initiating the application firmware OTA upgrade for Programmable XBee modules

# File lib/apimode/xbee_api.rb, line 642
def init_ota_upgrade(password = nil, remote_address = 0x000000000000ffff, remote_network_address = 0xfffe)
  frame_id = self.next_frame_id
  command_frame = XBee::Frame::ExplicitAddressingCommand.new(frame_id, remote_address, remote_network_address, 0xE8, 0xE8, 0x1000, 0xC105, 0x00, 0x00, password)
  self.xbee_serialport.write(command_frame._dump(self.api_mode.in_symbol))
end