A multifunctional and modular Firmware for Multitech's mDot based on ARM mBed provides a widerange of functionality for several Sensors such as MAX44009, BME280, MPU9250, SI1143 and uBlox. It allows you to quickly build a Sensornode that measures specific data with its sensors and sends it via LoRaWAN.
Dependencies: mDot_LoRa_Sensornode_Flowmeter_impl mbed-rtos mbed
FlowMeterMessage.h
00001 /* 00002 * FlowMeterMessage.h 00003 * 00004 * Created on: 23.10.2018 00005 * Author: Adrian 00006 */ 00007 00008 #ifndef MESSAGES_FLOWMETERMESSAGE_H_ 00009 #define MESSAGES_FLOWMETERMESSAGE_H_ 00010 00011 #include <stdio.h> 00012 #include <stdint.h> 00013 #include <string> 00014 #include <vector> 00015 00016 #include "SensorMessage.h " 00017 00018 class FlowMeterMessage: public SensorMessage { 00019 public: 00020 FlowMeterMessage(); 00021 virtual ~FlowMeterMessage(); 00022 00023 void setCurrentFlowrate(double currentFlowrate); 00024 double getCurrentFlowrate(); 00025 void setCurrentVolume(double currentVolume); 00026 double getCurrentVolume(); 00027 void setTotalFlowrate(double totalFlowrate); 00028 double getTotalFlowrate(); 00029 void setTotalVolume(double totalVolume); 00030 double getTotalVolume(); 00031 virtual char* getLoRaMessageString(); 00032 private: 00033 std::string flowMessage; 00034 std::vector<std::string> flowMessageId; 00035 00036 double currentFlowrate; 00037 double currentVolume; 00038 double totalFlowrate; 00039 double totalVolume; 00040 00041 }; 00042 00043 void pulesInputInterrupt(void); 00044 #endif /* MESSAGES_FLOWMETERMESSAGE_H_ */
Generated on Tue Jul 12 2022 21:35:26 by 1.7.2