7 years, 10 months ago.

Setup MQTT Client based on Cellular Network

Hello,

I am trying to setup the MQTT Client based on Cellular Network on my ublox-C027 device, and I found the eCellular_HelloMQTT example: https://developer.mbed.org/teams/ublox/code/Cellular_HelloMQTT/

However, when I compling the Cellular_HelloMQTT program on mbed Compiler in the Could, I always got following compling error:

Error: No instance of constructor "mbed::SerialBase::SerialBase" matches the argument list in "C027_Support/SerialPipe.cpp", Line: 4, Col: 29 Warning: Function "mbed::SerialBase::attach(T *, void (T::*)(), mbed::SerialBase::IrqType) [with T=SerialPipe]" (declared at <a href="#" onmousedown="mbed_doc_goto('/Cellular_HelloMQTTextras/mbed_faff56e089b2/drivers/SerialBase.h', '117'); return false;">/extras/mbed_faff56e089b2/drivers/SerialBase.h:117</a>) was declared "deprecated" in "C027_Support/SerialPipe.cpp", Line: 9, Col: 10 Warning: Function "mbed::SerialBase::attach(T *, void (T::*)(), mbed::SerialBase::IrqType) [with T=SerialPipe]" (declared at <a href="#" onmousedown="mbed_doc_goto('/Cellular_HelloMQTTextras/mbed_faff56e089b2/drivers/SerialBase.h', '117'); return false;">/extras/mbed_faff56e089b2/drivers/SerialBase.h:117</a>) was declared "deprecated" in "C027_Support/SerialPipe.cpp", Line: 78, Col: 10

I have no clue on the error. Can anyone give me some help on it? thank you.

Best Regards, Qing

1 Answer

7 years, 7 months ago.

Hi, this is because C027 library was written for mBed OS 2 or 3. I have managed to do some tweeks so it works under OS5

https://developer.mbed.org/users/pilotak/code/C027_Support/