Changed HapOut delay from 1ms to 50ms for WiFi transmits. Seems to be much more stable.

This commit is contained in:
Gregg 2024-01-01 17:35:02 -06:00
parent cc7ffb4c07
commit 12c6cf3fe1
2 changed files with 3 additions and 3 deletions

View File

@ -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");

View File

@ -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