no function member for "attach " call in Ticker or Timeout. for X_PLC01A1 ST Microelectronics board in MBed Studio v 1.4.0
You probably mean this component/extension board - X-NUCLEO-PLC01A1 Programmable Logic Controller | Mbed
However your informations are weak
- MbedOS version?
- A printscreen of the error would be nice
target boards - : nucleo - STM32F401RE - MB1136 and X-Nucleo - PLC01A1 extension board.
MBed Studio : version 1.4.1. on windows 10. Here there is a lightshot of errors with from HelloWorld_PLC01A1 example project from GitHub.
Try to replace
timeout.attach(this, &XNucleoPLC01A1::handle_freeze_to, msec/1000);
timeout.attach(callback(this, &XNucleoPLC01A1::handle_freeze_to), (std::chrono::microseconds)(msec*1000));
Since the second argument should be a time in microseconds the correct conversion from milliseconds to microseconds is
msec*1000 rather than
the problem is the library is old and it was not updated for MbedOS 6+.
- When you will follow what compiler says (errors) and check latest docs of Mbed Os you will found what is need to be changed.
- Downgrade the MbedOS to version 5.15 and use original.
could you please check the latest version of the library X_NUCLEO_PLC01A1 ?
HelloWorld application for the component updated, as well.