Re: Native MQTT client library for ESP8266
Posted: Thu Apr 23, 2015 6:51 am
is solved.
Greetings Zennix
Greetings Zennix
-->
Open Community Forum for ESP8266, Come share Arduino and IoT (Internet of Things)
https://www.esp8266.com/
Zennix wrote:is solved.
Greetings Zennix
void debounce_func(void *args) // Interrupt Routine Prell Timer
{
MQTT_Client* client = (MQTT_Client*)args;
MQTT_Publish(client, "/Wohnzimmer/Licht/1", "0", 1, 0, 1);
gpio_pin_intr_state_set(GPIO_ID_PIN(0), GPIO_PIN_INTR_NEGEDGE); // Interrupt wieder einschalten on any GPIO0 edge
}
void debounce_func(void *args) // Interrupt Routine Prell Timer
{
MQTT_Publish(&mqttClient, "/Wohnzimmer/Licht/1", "0", 1, 0, 1);
gpio_pin_intr_state_set(GPIO_ID_PIN(0), GPIO_PIN_INTR_NEGEDGE); // Interrupt wieder einschalten on any GPIO0 edge
}