Closed GvDatGithub closed 1 year ago
Sorry - the solution "set Stream Timeout at readStringUntil() function to 40 milliseconds #58" worked for me!
Hey :) That's good to hear. All the more reason for me to finally merge that PR. So it solved both the latency and the "fetching several things at once" issue?
You should be able to request several things at once like this:
String state_req[][2] = {{"NewSwitchState", ""}, {"NewMultimeterPower", ""}};
cAktuelleWattErzeuger = req[1][1];
Serial.print("SchalterStatus2: ");
Serial.println(state_req[0][1]);
Hey :) That's good to hear. All the more reason for me to finally merge that PR. So it solved both the latency and the "fetching several things at once" issue?
yes - it's all fine!
yes - i found: String paramsV[][2] = {{"NewAIN", FbApiAIN02}}; // Energieverbraucher String reqV[][2] = {{"NewMultimeterPower", ""}, {"NewSwitchState", ""}, {"NewMultimeterEnergy", ""}, {"NewTemperatureCelsius", ""}, {"NewDeviceName", ""}}; tr064_connection.action(tr064_service, "GetSpecificDeviceInfos", paramsV, 1, reqV, 5);
Serial.printf("Ende LeistungAbfragen2: "); Serial.println(millis());
Serial.println("--------- reqV ---------------"); Serial.print("reqV[0][1]: "); Serial.println(reqV[0][1]); Serial.print("reqV[1][1]: "); Serial.println(reqV[1][1]); Serial.print("reqV[2][1]: "); Serial.println(reqV[2][1]); Serial.print("reqV[3][1]: "); Serial.println(reqV[3][1]); Serial.print("reqV[4][1]: "); Serial.println(reqV[4][1]);
:)
Hello,
In the new version the first query of a Fritz! - Value ( power socket ) 20 seconds!
Previously ret was a string with all contents of the query String ret = tr064_connection.action(tr064_service, "GetSpecificDeviceInfos", params, 1, req, 1);
Questions:
Example: Start powerqueries: 9316 End power queries: 29414 Socket 1: WATT 1: 467.5 Start switch status query: 29415 End of switch status query: 39489 Switch status: ON
Start power interrogation 2: 39490 End power interrogation: 49567 Socket 1: WATT 1: 128.1 Start switch status query: 49568 End switch status query: 59667 SwitchStatus2: ON
Translated with www.DeepL.com/Translator (free version)
click to show code
``` // 26.07.2022 #include