8 years, 2 months ago.

for Compatibility with EthernetInterface Library.

The HTTPClient and NTPClient made ​​for EthernetInterface,
Was the investigation in order to be used in Murata TypeYD Wi-Fi module.

http://developer.mbed.org/users/donatien/code/HTTPClient/ http://developer.mbed.org/users/donatien/code/NTPClient/

Although I found the non-compatibility, can I request a correction ?

(1) TCPSocketConnection: "send" method the return value is always zero.


    /** Send data to the remote host.
        @param data The buffer to send to the host.
        @param length The length of the buffer to send.
        @return the number of written bytes on success (>=0) or -1 on failure
    int send(char *data_p, int length);

(2) TCPSocketConnection: There is no method "receive_all". (However, there is "send_all" method.)

(3) "receive" method is always implemented as blocking method. and it is not include timeout.
Therefore, if there is no response from the server, processing will stop permanently.


    while( con_info_p->is_received == false )

(4) Endpoint: "get_address" method returns the host name or IP address,
but correctly is the IP address only.


    /** Get the IP address of this endpoint
    \return The IP address of this endpoint.
    char* get_address(void);

This is my incomplete modified library. hope this helps. http://developer.mbed.org/users/ban4jp/code/SNICInterface_PullReq/

Question relating to:

SNIC UART Interface library: Serial to Wi-Fi library for Murata TypeYD Wi-Fi module. For more information about TypeYD: http://www.murata.co.jp/products/microwave/module/lbwb1zzydz/index.html

Could you make a drop-in fix? The application I am working on has been reset by watchdog timer quite a lot , usually once every 35 hours. I didn't realize this is caused by the timeout compatibility issue until very recently.

posted by Zhiyong Li 01 May 2015

1 Answer

7 years, 10 months ago.


Your proposal has been merged. Thank you very much.

Accepted Answer

This is probably a rude question, but when will this revision release? The application I am working on has been resetting a lot because of the timeout compatibility issue. About once every 35 hours.

posted by Zhiyong Li 30 Apr 2015