Project

class project.Project(name, cfg, loraObj, loraBaseBand, loraAuthMode)[source]

Bases: Thread

Project class.

Manages the project operations. It’s created a thread to each project configured.

name

The project name.

Type:

str

config

The project configuration.

Type:

dict

lora

The LoRa object.

Type:

LoRa

baseBand

The LoRa base-band.

Type:

str

authMode

The LoRa authentication mode.

Type:

str

run()[source]

Run method.

set_bit(number, position)[source]

Create a mask with a bit setted to 1 at a desired position.

Parameters:
  • number (int) – The number to set the bit.

  • position (int) – The bit position to set.

Returns:

The number with the bit setted.

Return type:

int