Skip to content

Commit

Permalink
🐛 Fix topic check for OTA upload (homieiot#375)
Browse files Browse the repository at this point in the history
* Change topic check for OTA upload

* Change firmware topics to remove the 's'
  • Loading branch information
Jesse Hills authored and jesserockz committed Mar 12, 2018
1 parent 5830d46 commit f119ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Homie/Boot/BootNormal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ void BootNormal::_advertise() {
break;
}
case AdvertisementProgress::GlobalStep::SUB_IMPLEMENTATION_OTA:
packetId = Interface::get().getMqttClient().subscribe(_prefixMqttTopic(PSTR("/$implementation/ota/firmwares/+")), 1);
packetId = Interface::get().getMqttClient().subscribe(_prefixMqttTopic(PSTR("/$implementation/ota/firmware/+")), 1);
if (packetId != 0) _advertisementProgress.globalStep = AdvertisementProgress::GlobalStep::SUB_IMPLEMENTATION_RESET;
break;
case AdvertisementProgress::GlobalStep::SUB_IMPLEMENTATION_RESET:
Expand Down

0 comments on commit f119ae9

Please sign in to comment.