Thank you Johannes,
Yes it did work, no warnings, however its impacted on another part that uses that function;
HttpsRequest* get_req = new HttpsRequest(socket, HTTP_GET, FirebaseUrl);
Error: Allocating an object of abstract class type ‘HttpsRequest’
After quite a long time
I managed to work it out;
Either this…
virtual nsapi_error_t connect_socket(char *host, uint16_t port) {
SocketAddress addr;
addr.set_port(port);
return ((TLSSocket*)_socket)->connect(host);
}
or this;
virtual nsapi_error_t connect_socket(char *host, uint16_t port) {
((TLSSocket*)_socket)->set_hostname(host);
SocketAddress addr;
addr.set_port(port);
return ((TLSSocket*)_socket)->connect(addr);
}
I don’t know which method would be best. But as of today I have no warnings ![]()
Lets hope Mr. Takalo doesn’t have any more depreciating ideas! and focus on what is not currently working.
Thank’s to both of you for your help
Regards
Paul