Basic WiFi Application联接好后只出来IP地址,如何知道他的端口号
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
To transmit a data packet:
1. Execute the Socket Open command (03) as described in the section "Open Socket".
2. Execute the sendto command (04AAX…Y02BCDEFGHIKLMN)
where:
• AA is the hexadecimal presentation of the length of data. For example, to send 5 bytes, type 05.
• The field following AA is data. For example, to send the string 12345, type 12345.
• BCDE is the hexadecimal presentation of the destination port.
• FGHIKLMN is the hexadecimal presentation of the destination IP address.