MCPcopy Create free account
hub / github.com/SmingHub/Sming / BMPinit

Function BMPinit

samples/MeteoControl_mqtt/app/bmp180.cpp:46–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44} // namespace
45
46void 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}

Callers 1

initFunction · 0.85

Calls 4

SoftResetMethod · 0.45
InitializeMethod · 0.45
PrintCalibrationDataMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected