File tree Expand file tree Collapse file tree 4 files changed +14
-10
lines changed Expand file tree Collapse file tree 4 files changed +14
-10
lines changed Original file line number Diff line number Diff line change 55
55
#endif
56
56
57
57
// Uncomment the following use the staging IO server //
58
- // #define USE_STAGING ///< Use Adafruit IO staging certificate
58
+ // #define USE_STAGING ///< Use Adafruit IO staging
59
+ // certificate
59
60
#define IO_MQTT_SERVER " io.adafruit.com" // /< Adafruit IO MQTT Server
60
61
// (Production)
61
62
Original file line number Diff line number Diff line change @@ -168,8 +168,9 @@ bool WipperSnapper_Component_I2C::initI2CDevice(
168
168
@returns True if I2C device is was successfully updated, False otherwise.
169
169
*/
170
170
/* ******************************************************************************/
171
- bool WipperSnapper_Component_I2C::updateI2CDevice (wippersnapper_i2c_v1_I2CDeviceDeinitRequest *msgDeviceUpdateReq) {
172
- // TODO!! //
171
+ bool WipperSnapper_Component_I2C::updateI2CDevice (
172
+ wippersnapper_i2c_v1_I2CDeviceDeinitRequest *msgDeviceUpdateReq) {
173
+ // TODO!! //
173
174
}
174
175
175
176
/* ******************************************************************************/
Original file line number Diff line number Diff line change @@ -38,20 +38,22 @@ class WipperSnapper_Component_I2C {
38
38
bool isInitialized ();
39
39
40
40
wippersnapper_i2c_v1_I2CBusScanResponse scanAddresses ();
41
- bool initI2CDevice (wippersnapper_i2c_v1_I2CDeviceInitRequest *msgDeviceInitReq);
41
+ bool
42
+ initI2CDevice (wippersnapper_i2c_v1_I2CDeviceInitRequest *msgDeviceInitReq);
42
43
// TODO: Update Implementation
43
44
// THIS NEEDS AN UPDATE REQUEST
44
- bool updateI2CDevice (wippersnapper_i2c_v1_I2CDeviceDeinitRequest *msgDeviceUpdateReq);
45
- bool deinitI2CDevice (wippersnapper_i2c_v1_I2CDeviceDeinitRequest *msgDeviceDeinitReq);
46
-
45
+ bool updateI2CDevice (
46
+ wippersnapper_i2c_v1_I2CDeviceDeinitRequest *msgDeviceUpdateReq);
47
+ bool deinitI2CDevice (
48
+ wippersnapper_i2c_v1_I2CDeviceDeinitRequest *msgDeviceDeinitReq);
47
49
48
50
void update ();
49
51
50
52
private:
51
53
bool _isInit;
52
54
int32_t _portNum;
53
55
TwoWire *_i2c = nullptr ;
54
- std::vector<WipperSnapper_I2C_Driver*> drivers;
56
+ std::vector<WipperSnapper_I2C_Driver *> drivers;
55
57
// Sensor drivers
56
58
WipperSnapper_I2C_Driver_AHTX0 *_ahtx0 = nullptr ;
57
59
};
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ class WipperSnapper_I2C_Driver {
198
198
@returns Time when the humidity sensor was last queried, in seconds.
199
199
*/
200
200
/* ********************************************************************************/
201
- virtual long getHumidSensorPeriodPrv () { return _humidSensorPeriodPrv;}
201
+ virtual long getHumidSensorPeriodPrv () { return _humidSensorPeriodPrv; }
202
202
203
203
/* ******************************************************************************/
204
204
/* !
@@ -216,7 +216,7 @@ class WipperSnapper_I2C_Driver {
216
216
bool _isInitialized = false ; // /< True if the I2C device was initialized
217
217
// /< successfully, False otherwise.
218
218
uint16_t _sensorAddress; // /< The I2C device's unique I2C address.
219
- DriverType_t _driverType; // /< The type of I2C driver.
219
+ DriverType_t _driverType; // /< The type of I2C driver.
220
220
long _tempSensorPeriod =
221
221
-1L ; // /< The time period between reading the temperature sensor's value.
222
222
long _humidSensorPeriod =
You can’t perform that action at this time.
0 commit comments