{"action":"created","issue":{"url":"https://api.github.com/repos/martin-ger/uMQTTBroker/issues/2","repository_url":"https://api.github.com/repos/martin-ger/uMQTTBroker","labels_url":"https://api.github.com/repos/martin-ger/uMQTTBroker/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/martin-ger/uMQTTBroker/issues/2/comments","events_url":"https://api.github.com/repos/martin-ger/uMQTTBroker/issues/2/events","html_url":"https://github.com/martin-ger/uMQTTBroker/issues/2","id":282199003,"number":2,"title":"Error building with Platformio - Multiple ways to build","user":{"login":"PRO2XY","id":4678368,"avatar_url":"https://avatars3.githubusercontent.com/u/4678368?v=4","gravatar_id":"","url":"https://api.github.com/users/PRO2XY","html_url":"https://github.com/PRO2XY","followers_url":"https://api.github.com/users/PRO2XY/followers","following_url":"https://api.github.com/users/PRO2XY/following{/other_user}","gists_url":"https://api.github.com/users/PRO2XY/gists{/gist_id}","starred_url":"https://api.github.com/users/PRO2XY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRO2XY/subscriptions","organizations_url":"https://api.github.com/users/PRO2XY/orgs","repos_url":"https://api.github.com/users/PRO2XY/repos","events_url":"https://api.github.com/users/PRO2XY/events{/privacy}","received_events_url":"https://api.github.com/users/PRO2XY/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-12-14T18:37:47Z","updated_at":"2017-12-15T12:59:18Z","closed_at":null,"author_association":"NONE","body":"When building the example program on Platformio, the following error is thrown:\r\n\r\n> *** Multiple ways to build the same target were specified for: C:\\Users\\username\\Documents\\PlatformIO\\ESP8266_MQTT_Broker\\.pioenvs\\esp12e\\lib\\uMQTTB\r\nroker-master\\MQTT.o  (from ['C:\\\\Users\\\\username\\\\Documents\\\\PlatformIO\\\\ESP8266_MQTT_Broker\\\\lib\\\\uMQTTBroker-master\\\\src\\\\MQTT.cpp'] and from ['C:\r\n\\\\Users\\\\username\\\\Documents\\\\PlatformIO\\\\ESP8266_MQTT_Broker\\\\lib\\\\uMQTTBroker-master\\\\src\\\\MQTT.c'])\r\nFile \"C:\\Users\\username\\.platformio\\penv\\lib\\site-packages\\platformio\\builder\\tools\\platformio.py\", line 272, in BuildLibrary\r\n\r\nThis might be due to the same name (mqtt.c and MQTT.cpp) of the two files being referenced, due to the non-case-sensitive nature of files on Windows. Both mqtt.c and MQTT.cpp would make the same object file, MQTT.o.\r\n\r\nPossible solution, change MQTT.cpp (and .h) to MQTT_Broker.cpp? Along with changing the class name and constructor and destructor? Or is that not a good way to deal with this issue?"},"comment":{"url":"https://api.github.com/repos/martin-ger/uMQTTBroker/issues/comments/351999923","html_url":"https://github.com/martin-ger/uMQTTBroker/issues/2#issuecomment-351999923","issue_url":"https://api.github.com/repos/martin-ger/uMQTTBroker/issues/2","id":351999923,"user":{"login":"PRO2XY","id":4678368,"avatar_url":"https://avatars3.githubusercontent.com/u/4678368?v=4","gravatar_id":"","url":"https://api.github.com/users/PRO2XY","html_url":"https://github.com/PRO2XY","followers_url":"https://api.github.com/users/PRO2XY/followers","following_url":"https://api.github.com/users/PRO2XY/following{/other_user}","gists_url":"https://api.github.com/users/PRO2XY/gists{/gist_id}","starred_url":"https://api.github.com/users/PRO2XY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRO2XY/subscriptions","organizations_url":"https://api.github.com/users/PRO2XY/orgs","repos_url":"https://api.github.com/users/PRO2XY/repos","events_url":"https://api.github.com/users/PRO2XY/events{/privacy}","received_events_url":"https://api.github.com/users/PRO2XY/received_events","type":"User","site_admin":false},"created_at":"2017-12-15T12:59:18Z","updated_at":"2017-12-15T12:59:18Z","author_association":"NONE","body":"Ok! Thanks Martin. \r\nI would just rename them to MQTT_Client instead. Do these provide the functions for the local client as well? In which case I would have use for them. \r\nAre the 'MQTT_SetUserId' and 'MQTT_SetUserPwd', introduced in d54abcb, derived from these two files?"}}
{"actor":{"display_login":"PRO2XY"}}