17 lines
541 B
C
Executable File
17 lines
541 B
C
Executable File
#if !defined(__MQTT_CLIENT_H__)
|
|
#define __MQTT_CLIENT_H__
|
|
|
|
//#define USE_MOSQUITTO_LIB
|
|
|
|
int MqttClient_Connect();
|
|
void MqttClient_Close();
|
|
void MqttClient_Refresher();
|
|
void MqttClient_Publisher();
|
|
void MqttClient_Publish_MotorGear(int iMotorIndex, int iGear);
|
|
void MqttClient_Publish_MotorPower(int iMotorIndex, int iPower);
|
|
void MqttClient_Publish_MotorSwitchState(int iMotorIndex, unsigned char nSwitchState);
|
|
void MqttClient_Publish_MotorActualPowerW(int iMotorIndex, int iMotorPowerW);
|
|
void MqttClient_SwitchPowerSupply(int on);
|
|
|
|
#endif
|