router_handler module

This Modules handles all the comunication to nodes.
It will routes the varius commands knowing where to send them based on the node address.

If the node_address of the given receiver is 0 the data will be written to the local OnosCenter pins.

if the node_address of the given receiver is 1 the data will be sent to the OnosCenter serial port to an arduino (not implemented yet)

If the node_address of the given receiver is between 2 to 255 :
OnosCenter will send the command to write the data to an arduino wich will then transmit it to the desired wireless node.(not implemented yet)

If the node_address of the given receiver is a string greater than 6 characters: The data will be sent over ethernet commmunication.

class router_handler.RouterHandler(hardwareModelDict, router_sn)[source]
close()[source]
composeChangeNodeOutputPinStatusQuery(pinNumbers, node_obj, objName, status_to_set, node_serial_number, out_type, user, priority, mail_report_list)[source]
getRouterName()[source]
outputWrite(node_serial_number, pinList, statusList, node_obj, objName, previous_status, statusToSet, output_type, user, priority, mail_report_list)[source]
read_router_pins()[source]
setHwPinMode(node_address, pinNumber, mode)[source]