{"action":"created","issue":{"url":"https://api.github.com/repos/marvinroger/homie-esp8266/issues/157","repository_url":"https://api.github.com/repos/marvinroger/homie-esp8266","labels_url":"https://api.github.com/repos/marvinroger/homie-esp8266/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/marvinroger/homie-esp8266/issues/157/comments","events_url":"https://api.github.com/repos/marvinroger/homie-esp8266/issues/157/events","html_url":"https://github.com/marvinroger/homie-esp8266/issues/157","id":179024610,"number":157,"title":"Homie breaks Serial setup","user":{"login":"euphi","id":5254983,"avatar_url":"https://avatars.githubusercontent.com/u/5254983?v=3","gravatar_id":"","url":"https://api.github.com/users/euphi","html_url":"https://github.com/euphi","followers_url":"https://api.github.com/users/euphi/followers","following_url":"https://api.github.com/users/euphi/following{/other_user}","gists_url":"https://api.github.com/users/euphi/gists{/gist_id}","starred_url":"https://api.github.com/users/euphi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/euphi/subscriptions","organizations_url":"https://api.github.com/users/euphi/orgs","repos_url":"https://api.github.com/users/euphi/repos","events_url":"https://api.github.com/users/euphi/events{/privacy}","received_events_url":"https://api.github.com/users/euphi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/marvinroger/homie-esp8266/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-24T10:57:20Z","updated_at":"2016-10-21T22:10:13Z","closed_at":null,"body":"For me, Homie makes the Serial configuration invalid (changed baudrate?). So it is necessary to call (again) `Serial.begin()` after `Homie.setup()`.\r\n\r\nIt is also not possible to see Homie debug output during setup (there should be at least 'Triggering NORMAL_MODE event...'). After setup, also the homie messages are fine.\r\n\r\nThe following setup\r\n```\r\nvoid setup() {\r\n\tSerial.begin(115200);\r\n\tSerial.println(\"Starting Heizungscontroller\");\r\n\tSerial.flush();\r\n\tHomie.disableResetTrigger();\r\n\tHomie.setup();\r\n\tSerial.begin(115200);\r\n\tSerial.println(\"Finished Setup\");\r\n\tSerial.flush();\r\n}\r\n```\r\n\r\nresults in the following output (including the noise from the bootloader at different baudrate):\r\n\r\n```\r\nrl␀l��|␀�l�|␂␌␌␌�␌l�␌b|��␂�␒�r�b�␌b��nn�lnn���␌b␜p��lrlrlp�n�␐␂␌␌�␌l␌��␌␌␌b␌n�|␂l�␌␌�b��nn�␀l��l`␂�␒␒nn␌l`␂␎␂nr���n␌␌b␌�␎l␎r��n␌␌b␌�␎l�r�����␌��l`␂��n�␂�*W�ѥ���\r\nHeizungscontroller\r\nT�␙���͡���Setup\r\n✔ Wi-Fi connected\r\nTriggering WIFI_CONNECTED event...\r\n↕ Attempting to connect to MQTT...\r\nSending initial information...\r\n✔ MQTT ready\r\nTriggering MQTT_CONNECTED event...\r\n3166: DEBUG/RelaisNode:Ready\r\n3166: DEBUG/RelaisNode::updateRelais():Value: 0\r\nsendI2C: Write value ffff.\r\nCalling setup function...\r\nSending Wi-Fi signal quality (46%)...\r\nSending uptime (3s)...\r\n```\r\n\r\nYou see, the Serial output of Homie seems to be written at a different baudrate. I investigated a little bit in the homie sourcecode, but up to now I have no clue what is happening?\r\n\r\n\r\nI'm using latest git version and experienced the same behavior several weeks ago (but did not invastigated it)."},"comment":{"url":"https://api.github.com/repos/marvinroger/homie-esp8266/issues/comments/255477464","html_url":"https://github.com/marvinroger/homie-esp8266/issues/157#issuecomment-255477464","issue_url":"https://api.github.com/repos/marvinroger/homie-esp8266/issues/157","id":255477464,"user":{"login":"euphi","id":5254983,"avatar_url":"https://avatars.githubusercontent.com/u/5254983?v=3","gravatar_id":"","url":"https://api.github.com/users/euphi","html_url":"https://github.com/euphi","followers_url":"https://api.github.com/users/euphi/followers","following_url":"https://api.github.com/users/euphi/following{/other_user}","gists_url":"https://api.github.com/users/euphi/gists{/gist_id}","starred_url":"https://api.github.com/users/euphi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/euphi/subscriptions","organizations_url":"https://api.github.com/users/euphi/orgs","repos_url":"https://api.github.com/users/euphi/repos","events_url":"https://api.github.com/users/euphi/events{/privacy}","received_events_url":"https://api.github.com/users/euphi/received_events","type":"User","site_admin":false},"created_at":"2016-10-21T22:10:13Z","updated_at":"2016-10-21T22:10:13Z","body":"I have only 512k Flash size, so I can't try a different size (`build_flags = -Wl,-Tesp8266.flash.512k64.ld`), It happens for different projects .\r\n\r\n_**Note:** I use the ESP modules from in-circuit.de. They are of great quality and use a breadboad-friendly pin layout / grid.  Unfortunately they have only 512k flash size, resulting in various limitations, e.g.  I can't use OTA._                                                                                                                                                                                                             "}}
{"actor":{"display_login":"euphi"}}