diff --git a/ESP8266/ATParser/ATParser.cpp b/ESP8266/ATParser/ATParser.cpp index 223dd24..f3e3d6d 100644 --- a/ESP8266/ATParser/ATParser.cpp +++ b/ESP8266/ATParser/ATParser.cpp @@ -325,5 +325,9 @@ bool ATParser::recv(const char *response, ...) // oob registration void ATParser::oob(const char *prefix, Callback cb) { - _oobs.push_back((struct oob){strlen(prefix), prefix, cb}); + struct oob oob; + oob.len = strlen(prefix); + oob.prefix = prefix; + oob.cb = cb; + _oobs.push_back(oob); }