You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
748 B

#ifndef COMPONENTS_FIRMWARE_INCLUDE_FIRMWARE_MQTRIGGERHTTPSERVER_H_
#define COMPONENTS_FIRMWARE_INCLUDE_FIRMWARE_MQTRIGGERHTTPSERVER_H_
#include <stdbool.h>
#include <stddef.h>
#include <inttypes.h>
typedef void(*RequestCallback)(const uint8_t* content, size_t ctLen,
const char** response, size_t* respLen);
typedef struct MqTriggerHttpCallbacks {
RequestCallback getRoot;
RequestCallback getSysSet;
RequestCallback getSysSetForm;
RequestCallback postSysSet;
RequestCallback reboot;
} MqTriggerHttpCallbacks;
bool nxStartMqTriggerHttpServer(void);
void nxStopMqTriggerHttpServer();
void nxSetMqTriggerHttpCallbacks(MqTriggerHttpCallbacks* cbs);
#endif /* COMPONENTS_FIRMWARE_INCLUDE_FIRMWARE_MQTRIGGERHTTPSERVER_H_ */