energia / Energia

Fork of Arduino for the Texas Instruments LaunchPad's
http://energia.nu
Other
798 stars 671 forks source link

Please make the WifiClient protected #1006

Open e2thenegpii opened 6 years ago

e2thenegpii commented 6 years ago

https://github.com/energia/Energia/blob/024a8fe8728a6e5af4e57832e36c0be43716f841/libraries/MQTTClient/WifiIPStack.h#L71

By making the WifiClient protected it would be possible to make a class that inherits WifiIPStack and only talks over TLS by calling the clients sslConnect functions. For consistency the client objects in the IPStack and EtherenetStack objects should probably be made protected.