{"action":"created","issue":{"url":"https://api.github.com/repos/jeelabs/esp-link/issues/437","repository_url":"https://api.github.com/repos/jeelabs/esp-link","labels_url":"https://api.github.com/repos/jeelabs/esp-link/issues/437/labels{/name}","comments_url":"https://api.github.com/repos/jeelabs/esp-link/issues/437/comments","events_url":"https://api.github.com/repos/jeelabs/esp-link/issues/437/events","html_url":"https://github.com/jeelabs/esp-link/issues/437","id":430736308,"node_id":"MDU6SXNzdWU0MzA3MzYzMDg=","number":437,"title":"How to get esp host name in uC?","user":{"login":"PomeloRock","id":16280032,"node_id":"MDQ6VXNlcjE2MjgwMDMy","avatar_url":"https://avatars3.githubusercontent.com/u/16280032?v=4","gravatar_id":"","url":"https://api.github.com/users/PomeloRock","html_url":"https://github.com/PomeloRock","followers_url":"https://api.github.com/users/PomeloRock/followers","following_url":"https://api.github.com/users/PomeloRock/following{/other_user}","gists_url":"https://api.github.com/users/PomeloRock/gists{/gist_id}","starred_url":"https://api.github.com/users/PomeloRock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PomeloRock/subscriptions","organizations_url":"https://api.github.com/users/PomeloRock/orgs","repos_url":"https://api.github.com/users/PomeloRock/repos","events_url":"https://api.github.com/users/PomeloRock/events{/privacy}","received_events_url":"https://api.github.com/users/PomeloRock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-04-09T02:23:09Z","updated_at":"2019-04-09T19:16:44Z","closed_at":null,"author_association":"NONE","body":"I find GetWifiStatus() but I would like to get esp host name in ELClient in Arduino.\r\n\r\nIs there any way?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/jeelabs/esp-link/issues/comments/481398127","html_url":"https://github.com/jeelabs/esp-link/issues/437#issuecomment-481398127","issue_url":"https://api.github.com/repos/jeelabs/esp-link/issues/437","id":481398127,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4MTM5ODEyNw==","user":{"login":"swilson86","id":25190617,"node_id":"MDQ6VXNlcjI1MTkwNjE3","avatar_url":"https://avatars3.githubusercontent.com/u/25190617?v=4","gravatar_id":"","url":"https://api.github.com/users/swilson86","html_url":"https://github.com/swilson86","followers_url":"https://api.github.com/users/swilson86/followers","following_url":"https://api.github.com/users/swilson86/following{/other_user}","gists_url":"https://api.github.com/users/swilson86/gists{/gist_id}","starred_url":"https://api.github.com/users/swilson86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swilson86/subscriptions","organizations_url":"https://api.github.com/users/swilson86/orgs","repos_url":"https://api.github.com/users/swilson86/repos","events_url":"https://api.github.com/users/swilson86/events{/privacy}","received_events_url":"https://api.github.com/users/swilson86/received_events","type":"User","site_admin":false},"created_at":"2019-04-09T19:16:44Z","updated_at":"2019-04-09T19:16:44Z","author_association":"NONE","body":"Depending on which version of esp-link/el-client you have, it can be done if you are using MQTT. See the notes at https://github.com/jeelabs/esp-link/issues/418\r\n\r\nThis particular block of code will return the MQTT name which usually is the same as the station name (with exception of slashes which might have to be substituted with a hyphen):\r\n\r\n  // Query the MQTT clientid\r\n  Serial.print(\"MQTT client id : \");\r\n  char *mqtt_clientid = cmd.mqttGetClientId();\r\n  Serial.println(mqtt_clientid);"}}
{"actor":{"display_login":"swilson86"}}