| 516 | } |
| 517 | |
| 518 | void Connection::maybeRequestFeatureFlags() { |
| 519 | if (m_ServerFeatures.isAvailable() || m_FeatureFlagsRequestAttempts >= 15) { |
| 520 | return; |
| 521 | } |
| 522 | |
| 523 | if (millis() - m_FeatureFlagsRequestTimestamp < 500) { |
| 524 | return; |
| 525 | } |
| 526 | |
| 527 | sendFeatureFlags(); |
| 528 | m_FeatureFlagsRequestTimestamp = millis(); |
| 529 | m_FeatureFlagsRequestAttempts++; |
| 530 | } |
| 531 | |
| 532 | bool Connection::isSensorStateUpdated(int i, std::unique_ptr<Sensor>& sensor) { |
| 533 | return (m_AckedSensorState[i] != sensor->getSensorState() |
nothing calls this directly
no test coverage detected