EthW5500+STM32
Dependencies: MQTT WIZnet_Library mbed
Fork of EthW5500 by
ETHW5500.h@3:54ad271708ff, 2018-04-20 (annotated)
- Committer:
- AlexQian
- Date:
- Fri Apr 20 01:37:27 2018 +0000
- Revision:
- 3:54ad271708ff
- Parent:
- 2:566a6b762cdf
- Child:
- 5:23424c038538
URL
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AlexQian | 2:566a6b762cdf | 1 | #ifndef ETHW5500_H |
AlexQian | 2:566a6b762cdf | 2 | #define ETHW5500_H |
AlexQian | 2:566a6b762cdf | 3 | #include "mbed.h" |
AlexQian | 2:566a6b762cdf | 4 | #include "WIZnetInterface.h" |
AlexQian | 2:566a6b762cdf | 5 | #include "MQTTSocket.h" |
AlexQian | 2:566a6b762cdf | 6 | #include "MQTTClient.h" |
AlexQian | 2:566a6b762cdf | 7 | typedef MQTT::Client<MQTTSocket,Countdown> MClient; |
AlexQian | 2:566a6b762cdf | 8 | int Eth_Init(uint8_t *mar_addr); |
AlexQian | 3:54ad271708ff | 9 | int Eth_ConnectToSer(char *URL); |
AlexQian | 2:566a6b762cdf | 10 | int Eth_Subscribe(const char* ns,const char *NODE_NAME, const char* type); |
AlexQian | 2:566a6b762cdf | 11 | void Eth_Report(const char* ns,const char *NODE_NAME, const char* type,const char* payload , size_t payload_len , |
AlexQian | 2:566a6b762cdf | 12 | bool retain ); |
AlexQian | 2:566a6b762cdf | 13 | #endif |