Conformed server.available() to server.accept()
"available()" was deprecated and replaced with "accept()"
This commit is contained in:
parent
112faf37a5
commit
d58eed5198
|
|
@ -230,7 +230,7 @@ void Span::pollTask() {
|
||||||
if(hapServer->hasClient()){
|
if(hapServer->hasClient()){
|
||||||
|
|
||||||
auto it=hapList.emplace(hapList.begin()); // create new HAPClient connection
|
auto it=hapList.emplace(hapList.begin()); // create new HAPClient connection
|
||||||
it->client=hapServer->available();
|
it->client=hapServer->accept();
|
||||||
it->clientNumber=it->client.fd()-LWIP_SOCKET_OFFSET;
|
it->clientNumber=it->client.fd()-LWIP_SOCKET_OFFSET;
|
||||||
|
|
||||||
HAPClient::pairStatus=pairState_M1; // reset starting PAIR STATE (which may be needed if Accessory failed in middle of pair-setup)
|
HAPClient::pairStatus=pairState_M1; // reset starting PAIR STATE (which may be needed if Accessory failed in middle of pair-setup)
|
||||||
|
|
|
||||||
|
|
@ -161,7 +161,7 @@ void Network_HS::apConfigure(){
|
||||||
|
|
||||||
dnsServer.processNextRequest();
|
dnsServer.processNextRequest();
|
||||||
|
|
||||||
if(client=apServer.available()){ // found a new HTTP client
|
if(client=apServer.accept()){ // found a new HTTP client
|
||||||
LOG2("=======================================\n");
|
LOG2("=======================================\n");
|
||||||
LOG1("** Access Point Client Connected: (");
|
LOG1("** Access Point Client Connected: (");
|
||||||
LOG1(millis()/1000);
|
LOG1(millis()/1000);
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ void setup() {
|
||||||
|
|
||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
|
|
||||||
|
homeSpan.enableWebLog(50);
|
||||||
homeSpan.begin(Category::Lighting,"HomeSpan LightBulb");
|
homeSpan.begin(Category::Lighting,"HomeSpan LightBulb");
|
||||||
|
|
||||||
new SpanAccessory();
|
new SpanAccessory();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue