File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,13 @@ class MbedClient : public arduino::Client {
3939
4040public:
4141 MbedClient ();
42- MbedClient (MbedClient&& orig) {
43- this ->sock = orig.sock ;
44- orig.borrowed_socket = true ;
45- orig.stop ();
46- this ->setSocket (orig.sock );
42+
43+ // Find something better to save the socket, this is nwither copy nor move constructor
44+ MbedClient (MbedClient* orig) {
45+ this ->sock = orig->sock ;
46+ orig->borrowed_socket = true ;
47+ orig->stop ();
48+ this ->setSocket (orig->sock );
4749 }
4850
4951 virtual ~MbedClient () {
Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ class WiFiClient : public MbedClient {
2929 NetworkInterface *getNetwork () {
3030 return WiFi.getNetwork ();
3131 }
32+ public:
33+ WiFiClient (WiFiClient* orig) : MbedClient(orig) {}
34+ WiFiClient () : MbedClient() {}
3235};
3336
3437}
You can’t perform that action at this time.
0 commit comments