Security
Secure data upload to openSenseMap
First steps with your senseBox and the Arduino IDE
The senseBox MCU Library gives you access to the following functions/sensors:
The senseBoxMCU Library is part of the Board-Support-Package and is installed automatically.
The senseBoxMCU library can be included individually with the following command:
include <senseBoxMCU.h>
The library contains the following classes and functions. Create a new instance of a class to access its functions, e.g. the class
#include "senseBoxMCU.h"
HDC1080 hdc;
Access to the following functions:
hdc.getTemperature();
hdc.getHumidity();
public:
Bee();
uint8_t connectToWifi(char* ssid, char* password);
void startAP(char* ssid);
char* getSsid();
char* getPassword();
char* getIpAddress();
Class name: 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);
Class name: SDS011
functions public:
SDS011(Stream& serial);
float getPm10(void);
float getPm25(void);
Class name: HDC1080
functions public:
uint8_t begin(void);
double getTemperature(void);
double getHumidity(void);
Class name: TSL45315
functions public:
uint8_t begin(void);
double getUvIntensity(void);
Class name: TSL45315
functions public:
uint8_t begin(void);
unsigned long getIlluminance(void);
Class name: Ultrasonic
functions public:
Ultrasonic(int rx, int tx);
long getDistance(void);
Class name: BMP280
functions public:
bool begin();
float getTemperature(void);
float getPressure(void);
float getAltitude(float seaLevelhPa = 1013.25);
Class name: GPS
functions public:
void begin();
float getLatitude();
float getLongitude();
float getAltitude();
float getSpeed();
float getHdop();
float getDate();
float getTime();
Class name: Microphones
functions public:
Microphones (int pin);
float getValue();
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);
Classname Button
functions public:
Button(int pin);
void begin();
bool getSwitch();
bool isPressed();
bool wasPressed();