Changed HapOut delay from 1ms to 50ms for WiFi transmits. Seems to be much more stable.
This commit is contained in:
parent
cc7ffb4c07
commit
12c6cf3fe1
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
#include "HomeSpan.h"
|
||||
|
||||
#define MAX_LIGHTS 2
|
||||
#define MAX_LIGHTS 60
|
||||
|
||||
struct RGB_Light : Service::LightBulb {
|
||||
|
||||
|
|
@ -73,7 +73,7 @@ void setup() {
|
|||
|
||||
Serial.begin(115200);
|
||||
|
||||
homeSpan.setLogLevel(2);
|
||||
homeSpan.setLogLevel(1);
|
||||
homeSpan.enableWebLog(500);
|
||||
|
||||
homeSpan.begin(Category::Lighting,"HomeSpan Max");
|
||||
|
|
|
|||
|
|
@ -1652,7 +1652,7 @@ void HapOut::HapStreamBuffer::flushBuffer(){
|
|||
hapClient->client.write(encBuf,num+18); // transmit encrypted frame
|
||||
hapClient->a2cNonce.inc(); // increment nonce
|
||||
}
|
||||
delay(1);
|
||||
delay(50);
|
||||
}
|
||||
|
||||
mbedtls_sha512_update_ret(ctx,(uint8_t *)buffer,num); // update hash
|
||||
|
|
|
|||
Loading…
Reference in New Issue