Skip to content

Commit 3b1d4bc

Browse files
committed
Fixed esp8266 build.
1 parent 738f3f5 commit 3b1d4bc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

iotsaSmartMeter.ino

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,11 @@ bool P1Parser::next(String& name, String& value) {
186186
}
187187

188188
// Declaration of the Hello module
189-
class IotsaP1Mod : public IotsaMod, IotsaApiProvider, IotsaBLEApiProvider {
189+
class IotsaP1Mod : public IotsaMod, IotsaApiProvider
190+
#ifdef IOTSA_WITH_BLE
191+
, IotsaBLEApiProvider
192+
#endif
193+
{
190194
public:
191195
IotsaP1Mod(IotsaApplication &_app)
192196
: IotsaMod(_app),
@@ -272,6 +276,7 @@ bool IotsaP1Mod::getHandler(const char *path, JsonObject& reply) {
272276
return true;
273277
}
274278

279+
#ifdef IOTSA_WITH_BLE
275280
bool IotsaP1Mod::bleGetHandler(UUIDstring charUUID) {
276281
if (charUUID == p1UUID) {
277282
IFDEBUG IotsaSerial.println("BLE getHandler for P1 telegram");
@@ -304,6 +309,7 @@ bool IotsaP1Mod::bleGetHandler(UUIDstring charUUID) {
304309
}
305310
return false;
306311
}
312+
#endif
307313

308314
void
309315
IotsaP1Mod::handler() {

0 commit comments

Comments
 (0)