MQTT client to test the ENC28J60-EMAC on NUCLEO-F446RE.

Dependencies:   ENC28J60-EMAC

Committer:
hudakz
Date:
Mon Mar 29 09:32:44 2021 +0000
Revision:
5:d9570dbf2f82
Parent:
0:238f0d0c0ba3
MQTT client to test the ENC28J60-EMAC on NUCLEO-F446RE.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hudakz 0:238f0d0c0ba3 1 /*******************************************************************************
hudakz 0:238f0d0c0ba3 2 * Copyright (c) 2014 IBM Corp.
hudakz 0:238f0d0c0ba3 3 *
hudakz 0:238f0d0c0ba3 4 * All rights reserved. This program and the accompanying materials
hudakz 0:238f0d0c0ba3 5 * are made available under the terms of the Eclipse Public License v1.0
hudakz 0:238f0d0c0ba3 6 * and Eclipse Distribution License v1.0 which accompany this distribution.
hudakz 0:238f0d0c0ba3 7 *
hudakz 0:238f0d0c0ba3 8 * The Eclipse Public License is available at
hudakz 0:238f0d0c0ba3 9 * http://www.eclipse.org/legal/epl-v10.html
hudakz 0:238f0d0c0ba3 10 * and the Eclipse Distribution License is available at
hudakz 0:238f0d0c0ba3 11 * http://www.eclipse.org/org/documents/edl-v10.php.
hudakz 0:238f0d0c0ba3 12 *
hudakz 0:238f0d0c0ba3 13 * Contributors:
hudakz 0:238f0d0c0ba3 14 * Ian Craggs - initial API and implementation and/or initial documentation
hudakz 0:238f0d0c0ba3 15 *******************************************************************************/
hudakz 0:238f0d0c0ba3 16
hudakz 0:238f0d0c0ba3 17 #ifndef MQTTPUBLISH_H_
hudakz 0:238f0d0c0ba3 18 #define MQTTPUBLISH_H_
hudakz 0:238f0d0c0ba3 19
hudakz 0:238f0d0c0ba3 20 int MQTTSerialize_publish(unsigned char* buf, int buflen, unsigned char dup, int qos, unsigned char retained, unsigned short packetid,
hudakz 0:238f0d0c0ba3 21 MQTTString topicName, unsigned char* payload, int payloadlen);
hudakz 0:238f0d0c0ba3 22
hudakz 0:238f0d0c0ba3 23 int MQTTDeserialize_publish(unsigned char* dup, int* qos, unsigned char* retained, unsigned short* packetid, MQTTString* topicName,
hudakz 0:238f0d0c0ba3 24 unsigned char** payload, int* payloadlen, unsigned char* buf, int len);
hudakz 0:238f0d0c0ba3 25
hudakz 0:238f0d0c0ba3 26 int MQTTSerialize_puback(unsigned char* buf, int buflen, unsigned short packetid);
hudakz 0:238f0d0c0ba3 27 int MQTTSerialize_pubrel(unsigned char* buf, int buflen, unsigned char dup, unsigned short packetid);
hudakz 0:238f0d0c0ba3 28 int MQTTSerialize_pubcomp(unsigned char* buf, int buflen, unsigned short packetid);
hudakz 0:238f0d0c0ba3 29
hudakz 0:238f0d0c0ba3 30 #endif /* MQTTPUBLISH_H_ */