Mbed-os: Cellular: Cannot use private "_is_connected" flag.

Created on 1 Oct 2019  路  4Comments  路  Source: ARMmbed/mbed-os


In cellular api's _is_connected flag is private and is used in do_connect function and do_connectis virtual. How child classes can use this flag, _is_connected. when do_connectis overridden child classes.

Also when do_connect is overridden then we cannot set this flag, _is_connected. So while calling do_disconnect because of _is_connected this check become true and sets _cid = -1 and when deactivate_context function is called give error. It will be better to add some method to set _is_connected.

Issue request type


[ ] Question
[ ] Enhancement
[x] Bug

CLOSED mirrored bug

Most helpful comment

@ARMmbed/mbed-os-maintainers , I think this issue can be closed. Fix has been merged a long time ago.

All 4 comments

@wajahat-ublox @fahim-ublox

cc @ARMmbed/mbed-os-wan

@ARMmbed/mbed-os-maintainers , I think this issue can be closed. Fix has been merged a long time ago.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bcostm picture bcostm  路  4Comments

1domen1 picture 1domen1  路  3Comments

drahnr picture drahnr  路  4Comments

MarceloSalazar picture MarceloSalazar  路  3Comments

ccchang12 picture ccchang12  路  4Comments