{"action":"created","issue":{"url":"https://api.github.com/repos/Imroy/pubsubclient/issues/15","labels_url":"https://api.github.com/repos/Imroy/pubsubclient/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/Imroy/pubsubclient/issues/15/comments","events_url":"https://api.github.com/repos/Imroy/pubsubclient/issues/15/events","html_url":"https://github.com/Imroy/pubsubclient/issues/15","id":90103633,"number":15,"title":"The delayMicrosecond(100) in PubSubClient::wait_for causes wdt and/or exception failure","user":{"login":"av1024","id":3978497,"avatar_url":"https://avatars.githubusercontent.com/u/3978497?v=3","gravatar_id":"","url":"https://api.github.com/users/av1024","html_url":"https://github.com/av1024","followers_url":"https://api.github.com/users/av1024/followers","following_url":"https://api.github.com/users/av1024/following{/other_user}","gists_url":"https://api.github.com/users/av1024/gists{/gist_id}","starred_url":"https://api.github.com/users/av1024/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/av1024/subscriptions","organizations_url":"https://api.github.com/users/av1024/orgs","repos_url":"https://api.github.com/users/av1024/repos","events_url":"https://api.github.com/users/av1024/events{/privacy}","received_events_url":"https://api.github.com/users/av1024/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-22T13:50:48Z","updated_at":"2015-06-22T15:01:51Z","closed_at":null,"body":"\r\nThe `delayMicoroseconds` does not update WDT so I have lock-ups, wdt or exception failures on stress-tests (stop MQTT broker, turn off WiFi etc).\r\n\r\nLook like replacing in by `yield()` solves an issue.\r\n"},"comment":{"url":"https://api.github.com/repos/Imroy/pubsubclient/issues/comments/114142109","html_url":"https://github.com/Imroy/pubsubclient/issues/15#issuecomment-114142109","issue_url":"https://api.github.com/repos/Imroy/pubsubclient/issues/15","id":114142109,"user":{"login":"igrr","id":4349050,"avatar_url":"https://avatars.githubusercontent.com/u/4349050?v=3","gravatar_id":"","url":"https://api.github.com/users/igrr","html_url":"https://github.com/igrr","followers_url":"https://api.github.com/users/igrr/followers","following_url":"https://api.github.com/users/igrr/following{/other_user}","gists_url":"https://api.github.com/users/igrr/gists{/gist_id}","starred_url":"https://api.github.com/users/igrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igrr/subscriptions","organizations_url":"https://api.github.com/users/igrr/orgs","repos_url":"https://api.github.com/users/igrr/repos","events_url":"https://api.github.com/users/igrr/events{/privacy}","received_events_url":"https://api.github.com/users/igrr/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T15:01:51Z","updated_at":"2015-06-22T15:01:51Z","body":"Guys, this code was there since original Nick's version. I remember it caused problems so I had a workaround in my code which called yield() internally if it detected that you are polling WiFiClient::available() in a loop. It seems to be broken now — I will check that.\r\n\r\nMy suggestions is to replace delayMicroseconds(100) with yield();"}}