| 44 | } // namespace |
| 45 | |
| 46 | void BMPinit() |
| 47 | { |
| 48 | // When we have connected, we reset the device to ensure a clean start. |
| 49 | barometer.SoftReset(); |
| 50 | |
| 51 | // Now we initialize the sensor and pull the calibration data |
| 52 | barometer.Initialize(); |
| 53 | barometer.PrintCalibrationData(); |
| 54 | |
| 55 | publishBMPTimer.initializeMs<TIMER * 3000>(publishBMP).start(); // start publish BMP180 sensor data |
| 56 | } |
no test coverage detected