7 years, 5 months ago.

Problem with class Serial and method attach

When i attach a mehod on a class serial, the Disco crash :

wifi.attach(this,&Wifly::handler_rx,Serial::RxIrq);

The compileur say me : Warning: Function "mbed::SerialBase::attach(T *, void (T::*)(), mbed::SerialBase::IrqType) [with T=Wifly]" (declared at <a href="#" onmousedown="mbed_doc_goto('/DISCO-F746NG_Wifiextras/mbed_d75b3fe1f5cb/drivers/SerialBase.h', '117'); return false;">/extras/mbed_d75b3fe1f5cb/drivers/SerialBase.h:117</a>) was declared "deprecated" in "WiflyInterface/Wifly/Wifly.cpp", Line: 441, Col: 15

How write with mbed os 5.1 ?

Question relating to:

The STM32F746G-DISCO discovery board (32F746GDISCOVERY) is a complete demonstration and development platform for STMicroelectronics ARM® Cortex®-M7 core-based STM32F746NGH6 microcontroller.

I would also like to know !

posted by John Doe 17 Feb 2017
Be the first to answer this question.