| 157 | *****************************************************************************/ |
| 158 | |
| 159 | void ConnectedState::initHttpClient() |
| 160 | { |
| 161 | m_client.regOnResponse([](const HttpResponse& rsp) { |
| 162 | uint16_t statusCode = rsp.getStatusCode(); |
| 163 | |
| 164 | if (HttpStatus::STATUS_CODE_OK == statusCode) |
| 165 | { |
| 166 | LOG_INFO("Online state reported."); |
| 167 | } |
| 168 | }); |
| 169 | |
| 170 | m_client.regOnError([]() { |
| 171 | LOG_WARNING("Connection error happened."); |
| 172 | }); |
| 173 | } |
| 174 | |
| 175 | void ConnectedState::pushUrl(const String& pushUrl) |
| 176 | { |
nothing calls this directly
no test coverage detected