ruuvi / ruuvi.gateway_esp.c

Ruuvi Gateway ESP32 code
BSD 3-Clause "New" or "Revised" License
25 stars 15 forks source link

Advs are sent to the server too often after time synchronisation, resulting in ER_THROTTLED error response #847

Closed TheSomeMan closed 1 year ago

TheSomeMan commented 1 year ago
I (82816098) TIME: [tiT/18] ### Time has been synchronized: 2023-08-20 23:48:52.823
I (82816099) ADV_POST_TASK: [adv_post_task/5] Force pending advs1 retransmission
...
I (82816402) http: [adv_post_task/5] ### HTTP POST to URL=https://network.ruuvi.com/record
...
I (82819844) http: [adv_post_task/23] ### HTTP POST to URL=https://network.ruuvi.com/record: STATUS=200
...
I (82820140) http: [adv_post_task/5] ### HTTP POST to URL=https://network.ruuvi.com/record
...
E (82823383) http: [adv_post_task/5] ../main/http.c:107 {http_post_event_handler_on_data}: HTTP_EVENT_ON_DATA, len=87: {
    "result": "error",
    "error": "Gateway throttled",
    "code": "ER_THROTTLED"
}

1.14testing.zip

markoaamunkajo commented 1 year ago

QA passed