代码拉取完成,页面将自动刷新
同步操作将从 Herry/Codesys-Mqtt-lib 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
typedef struct
{
BYTE DATA[1501];
DWORD IPOS;
}
BUFFERtyp;
typedef struct
{
BYTE BMESSAGETYPE;
BOOL XDUP_FLAG;
BYTE XQOS;
BOOL XRETAIN;
}
FIXEDHEADERtyp;
typedef struct
{
BOOL XUSERNAME;
BOOL XPASSWORD;
BOOL XWILLRETAIN;
BOOL XWILLQOS1;
BOOL XWILLQOS2;
BOOL XWILLFLAG;
BOOL XCLEANSESSION;
}
CONNECTFLAGStyp;
typedef struct
{
BYTE VERSION;
BYTE RESERVED;
BYTE CONNECT;
BYTE CONNACK;
BYTE PUBLISH;
BYTE PUBACK;
BYTE PUBREC;
BYTE PUBREL;
BYTE PUBCOMP;
BYTE SUBSCRIBE;
BYTE SUBACK;
BYTE UNSUBSCRIBE;
BYTE UNSUBACK;
BYTE PINGREQ;
BYTE PINGRESP;
BYTE DISCONNECT;
BYTE RESERVED2;
INT CONNECTED;
INT NOT_CONNECTED;
INT TIMEOUT;
INT WAIT_RESPONSE;
DWORD CONNECTION_TIMEOUT;
BUFFERtyp SENDBUFFER;
BUFFERtyp RECEIVEBUFFER;
FIXEDHEADERtyp FIXEDHEADER;
BUFFERtyp VARIABLEHEADER;
BUFFERtyp PAYLOAD;
CONNECTFLAGStyp CONNECTFLAGS;
TCP_CLIENTtyp TCPCLIENT;
BOOL XTCPCONNECTED;
BOOL XSTARTSEND;
DINT DIRECEIVECOUNT;
TONtyp CONNECTIONTIMER;
BOOL XTIMEOUT;
BYTE INCOMINGMESSAGETYPE;
INT ESTATE;
BOOL XSTARTTIMER;
char STOPIC[81];
char SPAYLOAD[81];
BOOL XCONNECTED;
BOOL *XPUBLISH;
BOOL *XSUBSCRIBE;
}
MQTT_CLIENTtyp;
/* Enum definitions */
/* The Prototypes */
BOOL BUFFERinit(BUFFERtyp* inst, BOOL bRetain);
BOOL _BUFFER_CONCAT(BUFFERtyp *PTparam, BUFFERtyp *PTCONTACTparam);
;
BOOL _BUFFER_PUSH(BUFFERtyp *PTparam, BYTE INparam);
;
BOOL _BUFFER_PUSH_STRING(BUFFERtyp *PTparam, char* INparam, BOOL INCLUDE_LENGTHparam);
;
BOOL _BUFFER_SET(BUFFERtyp *PTparam, BYTE INparam, WORD POSparam);
;
BOOL FIXEDHEADERinit(FIXEDHEADERtyp* inst, BOOL bRetain);
BOOL CREATE_MESSAGE(BUFFERtyp *PTparam, FIXEDHEADERtyp FIXEDHEADERparam, BUFFERtyp VARIABLEHEADERparam, BUFFERtyp PAYLOADparam);
;
BOOL ENCODE_REMAINING_LENGTH(BUFFERtyp *PTparam, DWORD LENGTHparam);
;
BOOL CONNECTFLAGSinit(CONNECTFLAGStyp* inst, BOOL bRetain);
void MQTT_CLIENT(MQTT_CLIENTtyp* inst);
BOOL MQTT_CLIENTinit(MQTT_CLIENTtyp* inst, BOOL bRetain);
void PLC_PRG(void);
;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。