Skip to main content
Visitor II
April 15, 2025
Question

how to send integer number from http webserver to stm32 micro controller using httpd

  • April 15, 2025
  • 2 replies
  • 627 views

hii everyone 

 

i would like to send an integer number that i get from the user on html webpage to the stm32  controller

lets say in the controller i just want to print the number that received from the webpage 

what is the method that i need to use in order to receive an integer number from a web page 

 

i saw once a method to send a string called CGI but i need to transfer an integer number  not a char or a string how can i do this

 

    This topic has been closed for replies.

    2 replies

    Super User
    May 12, 2025

    Surely, HTML is inherently text based?

    (the clue is in the name - the 'T' stands for "Text")

    So everything is just a char or a string.

    It's not difficult to convert from a char or string to a number - there are standard library functions for that ...

    abeba.1Author
    Visitor II
    May 14, 2025

    hii thanks for your help can you give me the name of the library to use and the function to the conversion fro char to integer

    Super User
    May 14, 2025

    @abeba.1 wrote:

     function to the conversion fro char to integer


    Go on - it's in the Standard C Library.

    See any C reference or textbook; eg, https://en.cppreference.com/w/c/string/byte

    Super User
    May 14, 2025

    How about web sockets