Some checks failed
Build and deploy Docs site to GitHub Pages / github-pages (push) Has been cancelled
PR Build Check / build (Heltec_v3_companion_radio_ble) (push) Has been cancelled
PR Build Check / build (Heltec_v3_repeater) (push) Has been cancelled
PR Build Check / build (Heltec_v3_room_server) (push) Has been cancelled
PR Build Check / build (LilyGo_Tlora_C6_repeater_) (push) Has been cancelled
PR Build Check / build (PicoW_repeater) (push) Has been cancelled
PR Build Check / build (RAK_4631_companion_radio_ble) (push) Has been cancelled
PR Build Check / build (RAK_4631_repeater) (push) Has been cancelled
PR Build Check / build (RAK_4631_room_server) (push) Has been cancelled
PR Build Check / build (wio-e5-mini_repeater) (push) Has been cancelled
- MeshCore-based Simple Sensor firmware - Heltec T114 without display - BME280 sensor support (temp/humidity/pressure) - Radio: 868.856018 MHz, SF7, BW62.5 kHz, CR4/7 - 2-byte path hash - PlatformIO project
48 lines
1.4 KiB
C++
48 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#define RADIOLIB_STATIC_ONLY 1
|
|
#include <RadioLib.h>
|
|
#include <helpers/radiolib/RadioLibWrappers.h>
|
|
#include "T1000eBoard.h"
|
|
#include <helpers/radiolib/CustomLR1110Wrapper.h>
|
|
#include <helpers/ArduinoHelpers.h>
|
|
#include <helpers/SensorManager.h>
|
|
#include <helpers/sensors/LocationProvider.h>
|
|
#ifdef DISPLAY_CLASS
|
|
#include "NullDisplayDriver.h"
|
|
#endif
|
|
|
|
class T1000SensorManager: public SensorManager {
|
|
bool gps_active = false;
|
|
LocationProvider * _nmea;
|
|
|
|
void start_gps();
|
|
void sleep_gps();
|
|
void stop_gps();
|
|
public:
|
|
T1000SensorManager(LocationProvider &nmea): _nmea(&nmea) { }
|
|
bool begin() override;
|
|
bool querySensors(uint8_t requester_permissions, CayenneLPP& telemetry) override;
|
|
void loop() override;
|
|
int getNumSettings() const override;
|
|
const char* getSettingName(int i) const override;
|
|
const char* getSettingValue(int i) const override;
|
|
bool setSettingValue(const char* name, const char* value) override;
|
|
LocationProvider* getLocationProvider() { return _nmea; }
|
|
};
|
|
|
|
#ifdef DISPLAY_CLASS
|
|
extern NullDisplayDriver display;
|
|
#endif
|
|
|
|
extern T1000eBoard board;
|
|
extern WRAPPER_CLASS radio_driver;
|
|
extern VolatileRTCClock rtc_clock;
|
|
extern T1000SensorManager sensors;
|
|
|
|
bool radio_init();
|
|
uint32_t radio_get_rng_seed();
|
|
void radio_set_params(float freq, float bw, uint8_t sf, uint8_t cr);
|
|
void radio_set_tx_power(int8_t dbm);
|
|
mesh::LocalIdentity radio_new_identity();
|