2020-01-04 21:46:46 +00:00
|
|
|
// ABMQTT.h
|
2019-09-08 00:14:36 +00:00
|
|
|
/*
|
|
|
|
* This file is part of the "bluetoothheater" distribution
|
|
|
|
* (https://gitlab.com/mrjones.id.au/bluetoothheater)
|
|
|
|
*
|
|
|
|
* Copyright (C) 2019 Ray Jones <ray@mrjones.id.au>
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2019-05-15 10:10:12 +00:00
|
|
|
|
|
|
|
#ifndef _ABMQTT_h
|
|
|
|
#define _ABMQTT_h
|
|
|
|
|
|
|
|
|
2019-08-31 07:34:56 +00:00
|
|
|
bool mqttInit();
|
2019-09-01 04:43:00 +00:00
|
|
|
void doMQTT();
|
2019-08-31 07:34:56 +00:00
|
|
|
bool mqttPublishJSON(const char* str);
|
2019-09-01 04:43:00 +00:00
|
|
|
void connectToMqtt();
|
|
|
|
void kickMQTT();
|
2019-09-04 10:59:01 +00:00
|
|
|
bool isMQTTconnected();
|
2020-04-07 21:51:52 +00:00
|
|
|
const char* getTopicPrefix();
|
2019-09-01 04:43:00 +00:00
|
|
|
|
2019-07-07 07:18:38 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|