Data Gator
Hardware and software documentation for the Data Gator project.
Loading...
Searching...
No Matches
MinewS1.hpp File Reference

Implementation of the Minew S1 bluetooth sensor family. Extends BLESensor.hpp. More...

#include <Arduino.h>
#include <sstream>
#include <string.h>
#include <../../include/BLESensor.hpp>
#include <NimBLEAdvertisedDevice.h>
#include <MQTTMailer.hpp>
Include dependency graph for MinewS1.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MinewS1
 Singleton used to identify and parse BLE transmissions from MinewS1 BLE Temperature and Humidity sensors. Inherits from BLESensor.hpp. More...
 

Macros

#define ENDIAN_CHANGE_U16(x)   ((((x)&0xFF00)>>8) + (((x)&0xFF)<<8))
 
#define ENDIAN_CHANGE_U32(x)   ((((x)&0xFF000000)>>24) + (((x)&0x00FF0000)>>8)) + ((((x)&0xFF00)<<8) + (((x)&0xFF)<<24))
 

Functions

std::string toString ()
 

Variables

const bool USB_DEBUG
 USB serial debugging enabled.
 
uint8_t id = 0x00
 
uint16_t unknown = 0x0000
 
int16_t temp = 0x0000
 
uint16_t humidity = 0x0000
 
uint8_t address [6] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
 
char name [2] = {0x00, 0x00}
 
uint8_t frameType = 0x00
 
uint8_t version = 0x00
 
uint16_t volt = 0x0000
 
uint32_t advCount = 0x00000000
 
uint32_t tmil = 0x00000000
 
uint8_t manufacturerID [6]
 

Detailed Description

Implementation of the Minew S1 bluetooth sensor family. Extends BLESensor.hpp.

Author
Garrett Wells
Date
2022

Variable Documentation

◆ USB_DEBUG

const bool USB_DEBUG
extern

USB serial debugging enabled.

Serial debug enable flag, set in config.h