senseBoxMCU Library

senseBox MCU Library

Die senseBox MCU Library bietet dir Zugriff auf die folgenden Funktionen/Sensoren:

Verwendung

Die senseBoxMCU Library ist Bestandteil des Board-Support-Packages und wird automatisch installiert.

Die senseBoxMCU Library lässt sich einzeln über folgenden Befehl einbinden:

include <senseBoxMCU.h>

Klassen und Funktionen

Die Library enthält die folgenden Klassen und Funktionen. Erstelle eine neue Instanz einer Klasse, um auf ihre Funktionen zugreifen zu können, z.B. bietet dir die Klasse

#include "senseBoxMCU.h"

HDC1080 hdc;

Zugriff auf die folgenden Funktionen:

hdc.getTemperature();
hdc.getHumidity();

Bee

public:
	Bee();
		uint8_t connectToWifi(char* ssid, char* password);
		void startAP(char* ssid);
		char* getSsid();
		char* getPassword();
		char* getIpAddress();

OpenSenseMap

Classname: OpenSenseMap

functions public:
			OpenSenseMap(const char* boxId, Bee* bee, const char* host);
			void uploadMeasurement(float value, char* sensorID);
			void uploadMobileMeasurement(float value, char* sensorID, float lat, float lng);
			void setUploadInterval(unsigned int);

SDS011

Classname: SDS011

functions public:
			SDS011(Stream& serial);
			float getPm10(void);
			float getPm25(void);

HDC1080

Classname: HDC1080

functions public:
			uint8_t begin(void);
			double getTemperature(void);
			double getHumidity(void); 

VEML6070

Classname: TSL45315

functions public:
			uint8_t begin(void);
			double getUvIntensity(void);

TSL45315

Classname: TSL45315

functions public:
			uint8_t begin(void);
			unsigned long getIlluminance(void); 

Ultrasonic

Classname: Ultrasonic

functions public:
			Ultrasonic(int rx, int tx);
        	long getDistance(void);

BMP280

Classname: BMP280

functions public:
			bool  begin();
			float getTemperature(void);
			float getPressure(void);
			float getAltitude(float seaLevelhPa = 1013.25);

GPS

Classname: GPS

functions public:
			void begin();
			float getLatitude();
			float getLongitude();
			float getAltitude();
			float getSpeed();
			float getHdop();
			float getDate();
			float getTime();

Mic


Classname: Microphone

functions public: 
		Microphone (int pin);
		float getValue();

BMX


Classname BMX055

functions	public:
		uint8_t beginAcc(char range);
		uint8_t beginGyro(void);
		uint8_t beginMagn(void);
		void getAcceleration(float *x, float *y, float *z, float *accTotal);
		void getMagnet(int *x, int *y, int *z);
		void getRotation(int *x, int *y, int *z);

Button


Classname Button

functions public: 
		Button(int pin);
		void begin();
		bool getSwitch();
		bool isPressed();
		bool wasPressed();
×

Subscribe

The latest tutorials sent straight to your inbox.