Callback procedure, informs that PPPoE login/configuration or established link failed. Procedure body has to be created elsewhere in the project (externally with respect to the library).
sub callback_pppoe_failure(pppoe_code as en_pppoe_status_codescodes)
Step-by-step Usage Instructions, Operation Details
Reason for failure:
3- PPPOE_TIMEOUT: timeout while waiting for the reply from the ADSL modem (access concentrator).
4- PPPOE_CONFIGURATION_ERROR: something went wrong... and on the PPPoE many things can go wrong. Perhaps, login name or password should be re-checked?.
5- PPPOE_STOPPED: pppoe_stop() was called.
As follows from the above, this procedure is called even if your application "manually" aborts PPPoE by calling pppoe_stop().