|
|
| | Loom_LoRa (LoomManager *device_manager, const uint16_t max_message_len=RH_RF95_MAX_MESSAGE_LEN, const uint8_t address=0, const uint8_t power_level=23, const uint8_t retry_count=3, const uint16_t retry_timeout=200) |
| | LoRa module constructor. More...
|
| |
| | Loom_LoRa (LoomManager *device_manager, JsonArrayConst p) |
| | Constructor that takes Json Array, extracts args and delegates to regular constructor. More...
|
| |
| | ~Loom_LoRa ()=default |
| | Destructor. More...
|
| |
|
| void | add_config (JsonObject json) override |
| | Add configuration information to JsonObject. More...
|
| |
| void | power_up () override |
| | Turn on any hardware. More...
|
| |
| void | power_down () override |
| | Turn off any hardware. More...
|
| |
|
| void | print_config () const override |
| | Display the configuration settings of the module. More...
|
| |
|
| uint8_t | get_address () const override |
| | Get the address of this device. More...
|
| |
|
| void | set_address (const uint8_t addr) override |
| | Set the address of this device. More...
|
| |
| | LoomCommPlat (LoomManager *manager, const char *module_name, const LoomModule::Type module_type, const uint16_t max_message_len) |
| | Constructor. More...
|
| |
| virtual | ~LoomCommPlat ()=default |
| | Destructor. More...
|
| |
| virtual void | package (JsonObject json) override |
| | Package a modules measurements or state. More...
|
| |
| bool | receive_blocking (JsonObject json, uint max_wait_time) |
| | Receive, but block until packet received, or timeout reached. More...
|
| |
| bool | receive (JsonObject json) |
| | Build json from packet if any exists. More...
|
| |
| bool | receive_batch () |
| | Receive and immediately create a batch file from JSON receieved. More...
|
| |
| bool | receive_batch_blocking (uint max_wait_time) |
| | Receive, and block until packet recieved or timeout, and immediately create a batch file from JSON receieved. More...
|
| |
| bool | receive () |
| | Version of receive for use with LoomManager. More...
|
| |
| bool | receive_blocking (const uint max_wait_time) |
| | Version of receive_blocking for use with LoomManager. More...
|
| |
| JsonObject | pre_merge_receive_blocking (JsonObject json) |
| | Giving the header of the Package from the other board. More...
|
| |
| bool | merge_json (JsonObject json, const uint8_t loop) |
| | It will merge all the small packages into one big package. More...
|
| |
| bool | send (JsonObject json, const uint8_t destination) |
| | Send json to a specific address. More...
|
| |
| bool | send (const uint8_t destination) |
| | Version of send for use with LoomManager. More...
|
| |
| uint8_t | send_batch (const uint8_t destination, int delay_time) |
| | Sends all the jsons stored in the batch. More...
|
| |
| uint16_t | determine_json_size (JsonObject json) |
| | Return the size of the json to determing wether to send as split or not. More...
|
| |
| bool | split_send_notification (JsonObject json, const uint8_t destination) |
| | If the json is over 251, then it let the user the know that it will be sending small mulitple jsons with how many will it be splited into. More...
|
| |
| bool | split_send (JsonObject json, const uint8_t destination, const uint8_t index) |
| | The actual processing spliting into small json. More...
|
| |
| void | broadcast (JsonObject json) |
| | Broadcast data to all that can receive. More...
|
| |
| void | broadcast () |
| | Version of send for use with LoomManager. More...
|
| |
| void | broadcast_batch (int delay_time) |
| | Broadcasts all the jsons stored in the batch. More...
|
| |
| virtual void | print_state () const override |
| | Display current state of the module. More...
|
| |
| float | get_drop_rate () const |
| | Get the packet drop rate since the start of operation. More...
|
| |
| float | get_last_ten_drop_rate () const |
| | Get the packet drop rate of the last ten send() calls. More...
|
| |
| | LoomModule (LoomManager *manager, const char *module_name="Unknown", const Type module_type=Type::Unknown) |
| | Constructor. More...
|
| |
| virtual | ~LoomModule ()=default |
| | Destructor. More...
|
| |
| virtual void | second_stage_ctor () |
| | Second stage construction. More...
|
| |
| virtual bool | dispatch (JsonObject json) |
| | Route command to driver. More...
|
| |
| Type | get_module_type () const |
| | Get module type. More...
|
| |
| LoomManager * | get_device_manager () const |
| | Get the device manager class if linked. More...
|
| |
| void | get_module_name (char *buf) const |
| | Copy module name into buffer. More...
|
| |
| const char * | get_module_name () const |
| | Get module name. More...
|
| |
| Verbosity | get_print_verbosity () const |
| | Get print verbosity. More...
|
| |
| Verbosity | get_package_verbosity () const |
| | Get package verbosity. More...
|
| |
| bool | get_active () const |
| | Get whether or not the module should be treated as active. More...
|
| |
| Category | category () const |
| | Get the category of the module. More...
|
| |
| virtual void | link_device_manager (LoomManager *LM) |
| | Add pointer back to device manager. More...
|
| |
| void | set_print_verbosity (const Verbosity v) |
| | Set print verbosity Controlls level of detail included in debug prints. More...
|
| |
| void | set_package_verbosity (const Verbosity v) |
| | Set package verbosity. More...
|
| |
| void | set_active (const bool enable) |
| | Set whether or not the module should be treated as active. More...
|
| |
|
| enum | Type {
Type::Unknown = 0,
Type::Other =1000,
Type::Interrupt_Manager,
Type::Sleep_Manager,
Type::Multiplexer,
Type::NTP,
Type::TempSync,
Type::WarmUp_Manager,
Type::Sensor =2000,
Type::Analog,
Type::Digital,
Type::I2C =2100,
Type::ADS1115,
Type::AS7262,
Type::AS7263,
Type::AS7265X,
Type::FXAS21002,
Type::FXOS8700,
Type::LIS3DH,
Type::MB1232,
Type::MMA8451,
Type::MPU6050,
Type::MS5803,
Type::SHT31D,
Type::TMP007,
Type::TSL2561,
Type::TSL2591,
Type::ZXGesture,
Type::STEMMA,
Type::SDI12 =2200,
Type::Decagon5TM,
Type::DecagonGS3,
Type::SPI =2300,
Type::MAX31855,
Type::MAX31856,
Type::L_SERIAL =2400,
Type::K30,
Type::L_RTC =3000,
Type::DS3231,
Type::PCF8523,
Type::Actuator =4000,
Type::Neopixel,
Type::Relay,
Type::Servo,
Type::Stepper,
Type::LogPlat =5000,
Type::OLED,
Type::SDCARD,
Type::BATCHSD,
Type::CommPlat =6000,
Type::LoRa,
Type::nRF,
Type::Bluetooth,
Type::InternetPlat =7000,
Type::Ethernet,
Type::WiFi,
Type::LTE,
Type::PublishPlat =8000,
Type::GoogleSheets,
Type::MaxPub,
Type::SpoolPub,
Type::SubscribePlats =9000,
Type::MaxSub
} |
| | Enum to check against to when finding individual component managed by a LoomManager. More...
|
| |
| enum | Category {
Category::Unknown =0,
Category::Other =1,
Category::Sensor =2,
Category::L_RTC =3,
Category::Actuator =4,
Category::LogPlat =5,
Category::CommPlat =6,
Category::InternetPlat =7,
Category::PublishPlat =8,
Category::SubscribePlat =9
} |
| | Enum to classify modules. More...
|
| |
| static const char * | enum_verbosity_string (const Verbosity v) |
| | Get string of name associated with verbosity enum. More...
|
| |
| static const char * | enum_category_string (const Category c) |
| | Get string of the category associated with a Category. More...
|
| |
| virtual void | broadcast_impl (JsonObject json) |
| | Broadcast data to all that can receive. More...
|
| |
| bool | json_to_msgpack_buffer (JsonObjectConst json, char *buffer, const uint16_t max_len) const |
| | Serialize a JsonObject into a MessagePack buffer. More...
|
| |
| bool | msgpack_buffer_to_json (const char *buffer, JsonObject json) |
| | Deserialize a MessagePack buffer into a JsonObject. More...
|
| |
| void | add_packet_result (const bool did_drop) |
| | Add the result of a packet to the drop_rate tracker. More...
|
| |
| void | print_module_label () const |
| | Print the module name as a label. More...
|
| |