Ejemplo n.º 1
0
    def __init__(self):
        """ Initializes the class. """

        self.Helpers = Helpers("Foscam")

        # Initiates the iotJumpWay connection class
        self.iot = iot()
        self.iot.connect()

        self.Sockets = Sockets()

        self.Helpers.logger.info("Foscam Class initialization complete.")
Ejemplo n.º 2
0
	def __init__(self):
		""" Initializes the class. """

		self.Helpers = Helpers("Camera")

		# Initiates the iotJumpWay connection class
		self.iot = iot()
		self.iot.connect()
		# Subscribes to the commands topic
		self.iot.channelSub("Commands")
		# Sets the commands callback function
		self.iot.commandsCallback = self.commands

		self.Sockets = Sockets()

		self.Helpers.logger.info("Camera Class initialization complete.")