TOP Contributors

  1. MIKROE (2657 codes)
  2. Alcides Ramos (354 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136901 times)
  2. FAT32 Library (70034 times)
  3. Network Ethernet Library (56005 times)
  4. USB Device Library (46308 times)
  5. Network WiFi Library (41934 times)
  6. FT800 Library (41234 times)
  7. GSM click (29022 times)
  8. PID Library (26434 times)
  9. mikroSDK (26401 times)
  10. microSD click (25387 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

CycloneTCP HTTP Client Demo

Rating:

0

Author: MIKROE

Last Updated: 2024-04-01

Package Version: 2.0.0.4

mikroSDK Library: 2.0.0.0

Category: Ethernet

Downloaded: 35 times

Not followed.

License: MIT license  

The application demonstrates CycloneTCP HTTP client functionality.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "CycloneTCP HTTP Client Demo" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "CycloneTCP HTTP Client Demo" changes.

Do you want to report abuse regarding "CycloneTCP HTTP Client Demo".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
GCC for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

CycloneTCP HTTP Client DEMO

In this demo, the HTTP client running on MCU will connect to the HTTP server "www.httpbin.org", port number 80. Client will then send POST request to HTTP server whith header containing, Host: "www.httpbin.org", User-Agent: "Mozilla/5.0" ,Content-Type: "text/plain", and Transfer-Encoding: "chunked", and parameters/aruments, param1 and param2, having respective values of "value1" and "value2". Body of the message is plain text "Hello World!". Response from the HTTP server will be read, echoing back sent data in json format, and will be written over UART/Application output.

Hardware Support

  • Connect Ethernet cable to ETH connector on the right side of the board.
  • Connect USB-C cable to USB-UART connector on the left side of the board.

image

Software Support

We provide demo code for testing HTTP client functionality. For example to work, proper clock setup is needed. To create a setup with the adequate clock scheme, follow these steps:

  1. Click on Setups and select New.
  2. Select GCC ARM or RISC-V compiler and click on Advanced.
  3. From Redirect standard output to: drop down menu, select UART, and then click Save.
  4. Select Board you are using.
  5. Select your MCU and click on Advanced.
  6. Select Config scheme from drop down menu, it will have MCU_NAME_ETHERNET name.
  7. If you dont see MCU_NAME_ETHERNET scheme for your MCU then ETHERNET module is not supported.
  8. Click Save, then Next.
  9. Select desired display, and choose programmer/debugger tool.
  10. Click Finish.
  11. Program the MCU.
  12. In case of a setup with UART open Tools view (Ctrl + 7) and select UART Terminal. In case of setup with Application output, run debug and go straight to step 17
  13. Click on Options and change Port to the one you are using.
  14. Furthemore, change Baud rate to 115200 bps.
  15. Press Configure
  16. Click on Connect.
  17. When prompted, press the appropriate button, and on UART/Application output you can observe the process of connecting to HTTP server, sedning POST request to, and receiving the response from the HTTP server.

example

example


ALSO FROM THIS AUTHOR

IoT ExpressLink 3 click

0

IoT ExpressLink 3 Click is a compact add-on board that allows users to connect easily to IoT ExpressLink services and securely interact with cloud applications and other devices. This board features the NORA-W256WS, a standalone multi-radio module from u-blox. The module supports Wi-Fi radio at 802.11b/g/n standard and 2.4GHz of ISM band. It also supports the Bluetooth Low Energy 5. The embedded AWS IoT ExpressLink-compliant software includes secured pre-flashed certificates in the module.

[Learn More]

ISO ADC click

0

The ISO ADC Click is add-on board current-shunt measurement device with isolated delta-sigma modulator. This Click board™ is based on AMC1204BDWR provide a single-chip solution for measuring the small signal of a shunt resistor across an isolated barrier from Texas Instruments. ISO ADC Click contains shunt resistor, these types of resistors are typically used to sense currents in motor control inverters, green energy generation systems, and other industrial applications.

[Learn More]

6DOF IMU 16 click

0

6DOF IMU 16 Click is a compact add-on board with a 6-axis inertial measurement device. This board features the ICM-42605, a premium performance 6-axis MotionTracking™ IMU from TDK InvenSense. It combines a 3-axis gyroscope and a 3-axis accelerometer, supporting the lowest gyroscope and accelerometer sensor noise in this IMU class. It also has the highest stability against temperature, shock, SMT/bend-induced offset, and more.

[Learn More]