Milestone 1
All function implemented in OOP except WebServer Function. Most missing documentation and comments
This commit is contained in:
parent
e1f0fd5651
commit
d62ffa3606
7 changed files with 10 additions and 29 deletions
|
@ -100,14 +100,8 @@ void ESPMegaIoT::registerCard(uint8_t card_id)
|
|||
components[card_id]->begin(card_id, cards[card_id], &mqtt, this->mqtt_config.base_topic);
|
||||
if (mqtt_connected)
|
||||
{
|
||||
Serial.println("Subscribing to Input Topics");
|
||||
components[card_id]->subscribe();
|
||||
mqtt.loop();
|
||||
Serial.println(mqtt.connected()? "MQTT Connected" : "MQTT Not Connected");
|
||||
Serial.println("Publishing Input report");
|
||||
components[card_id]->publishReport();
|
||||
mqtt.loop();
|
||||
Serial.println(mqtt.connected()? "MQTT Connected" : "MQTT Not Connected");
|
||||
}
|
||||
break;
|
||||
case CARD_TYPE_DIGITAL_OUTPUT:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue