Client::Client(uint8_t *ip, uint16_t port) : _WiFly (WiFly), stream (ParsedStream(SpiSerial)) { _ip = ip; _port = port; _domain = NULL; isOpen = false; }
Client::Client(const char* domain, uint16_t port) : _WiFly (WiFly), stream (ParsedStream(SpiSerial)) { _ip = NULL; _port = port; _domain = domain; isOpen = false; }
Client::Client(uint8_t * ip, uint16_t port) : stream(ParsedStream(SpiSerial)) { this->ip = ip; this->port = port; domain = NULL; open = false; }
Client::Client(const char * domain, uint16_t port) : stream(ParsedStream(SpiSerial)) { ip = NULL; this->port = port; this->domain = domain; open = false; }
Client::Client(uint8_t *ip, uint16_t port) : _WiFly (WiFly), stream (ParsedStream(SpiSerial)) { // TODO: Find out why neither of the following work as expected. // (The result of `read()` is always -1. ) //stream (ParsedStream(_WiFly.uart)) { //stream (ParsedStream(WiFly.uart)) { /* */ _ip = ip; _port = port; _domain = NULL; isOpen = false; }