Mongoose Logo Mongoose
  • Developers
    docsDocumentation
    user guide and API reference
    web ui wizardMongoose Wizard
    no-code Web UI builder
    videosVideos and Webinars
    get in-depth expert insights
    articlesArticles
    embedded technical articles
    comparisonComparison
    comparison with other solutions
    securitySecurity
    security overview
    TLS helperTLS Helper
    fetch CA certificates
    OTA over MQTTOTA over MQTT
    update firmware over MQTT
    githubGitHub Repo
    get source code, file issues
    chatCommunity Forum
    ask questions, get answers
    binaryMongoose Binary
    pre-built executable
  • Business
    case-studyCase Studies
    customers successes
    testimonialsTestimonials
    customers feedback
    licensingLicensing
    licensing information
    supportSupport
    commercial support
    builderIntegration services
    custom development
    partnersPartners
    third party platforms
  • About
  • Contact
  1. Home
  2. Docs
  3. API
  • Getting started
    • Introduction
    • Build environment
    • Build options
    • Programming model
    • Your first web server
  • Guides
    • Add TCP/IP stack to STM32
      • Introduction
      • Copy Mongoose files
      • Set network driver
      • Update the linker script
      • Create a minimal HTTP server
      • Build and run
    • Web UI builder
      • Introduction
      • Concept
      • Custom API Handlers
      • Configuration file format
      • REST API
      • Web UI
      • Expressions
      • Attributes
      • API access levels
      • Web UI login
      • HTTP protocol support
      • Autoupdate interval
      • Websockets updates
      • Custom REST API handlers
      • Supported boards
      • FAQ
  • Networking Concepts
    • Event-driven architecture
      • What is Mongoose
      • Event-driven networking model
      • Events vs BSD sockets
      • Event loop and event handlers
      • Connection objects
      • Send and receive buffers
      • Event handler function
      • Protocol handlers
      • Architecture diagram
      • Summary
    • Mongoose Features
    • Supported Hardware
      • Introduction
      • Build environments
      • Network drivers
  • API Reference
    • Core
      • struct mg_addr
      • struct mg_mgr
      • struct mg_connection
      • mg_mgr_init
      • mg_mgr_poll
      • mg_mgr_free
      • mg_listen
      • mg_connect
      • mg_send
      • mg_wakeup
      • mg_wakeup_init
      • mg_printf-mg_vprintf
      • mg_wrapfd
    • HTTP
      • struct mg_http_header
      • struct mg_http_message
      • mg_http_listen
      • mg_http_connect
      • mg_http_status
      • mg_http_get_request_len
      • mg_http_parse
      • mg_http_printf_chunk
      • mg_http_write_chunk
      • struct mg_http_serve_opts
      • mg_http_serve_dir
      • mg_http_serve_file
      • mg_http_reply
      • mg_http_get_header
      • mg_http_get_header_var
      • mg_http_var
      • mg_http_get_var
      • mg_http_creds
      • mg_http_bauth
      • struct mg_http_part
      • mg_http_next_multipart
      • mg_http_upload
    • WebSocket
      • struct mg_ws_message
      • mg_ws_connect
      • mg_ws_upgrade
      • mg_ws_send
      • mg_ws_printf, mg_ws_vprintf
      • mg_ws_wrap
    • SNTP
      • mg_sntp_connect
      • mg_sntp_request
    • MQTT
      • struct mg_mqtt_opts
      • struct mg_mqtt_message
      • mg_mqtt_connect
      • mg_mqtt_listen
      • mg_mqtt_login
      • mg_mqtt_pub
      • mg_mqtt_sub
      • mg_mqtt_send_header
      • mg_mqtt_ping
      • mg_mqtt_parse
      • mg_mqtt_unsub
      • mg_mqtt_disconnect
    • mDNS / DNS-SD
      • struct mg_mdns_req
      • mg_mdns_listen
      • struct mg_dnssd_record
    • TLS / Security
      • struct mg_tls_opts
      • mg_tls_init
    • WiFI
      • struct mg_wifi_data
      • struct mg_wifi_scan_bss_data
      • mg_wifi_scan
      • mg_wifi_connect
      • mg_wifi_disconnect
      • mg_wifi_ap_start
      • mg_wifi_ap_stop
    • String
      • struct mg_str
      • mg_str
      • mg_str_n
      • mg_casecmp
      • mg_strcmp
      • mg_strcasecmp
      • mg_strdup
      • mg_match
      • mg_span
      • mg_str_to_num
      • mg_path_is_sane
      • mg_snprintf, mg_vsnprintf
      • mg_mprintf, mg_vmprintf
      • mg_xprintf, mg_vxprintf
      • mg_pfn_iobuf
      • mg_aton
    • JSON
      • mg_json_get
      • mg_json_get_tok
      • mg_json_get_num
      • mg_json_get_bool
      • mg_json_get_long
      • mg_json_get_str
      • mg_json_get_hex
      • mg_json_get_b64
      • mg_json_unescape
      • mg_json_next
    • Logging
      • LOG
      • mg_log_set
      • mg_hexdump
      • mg_log_set_fn
    • Time
      • mg_millis
      • mg_now
      • mg_timer_expired
    • JSON-RPC
      • struct mg_rpc
      • struct mg_rpc_req
      • mg_rpc_add
      • mg_rpc_del
      • mg_rpc_process
      • mg_rpc_ok, mg_rpc_vok
      • mg_rpc_err, mg_rpc_verr
      • mg_rpc_list
    • Utilities
      • mg_call
      • mg_error
      • mg_md5_init
      • mg_md5_update
      • mg_md5_final
      • mg_sha1_init
      • mg_sha1_update
      • mg_sha1_final
      • mg_base64_update
      • mg_base64_final
      • mg_base64_encode
      • mg_base64_decode
      • mg_random
      • mg_random_str
      • mg_ntohs
      • mg_ntohl
      • mg_htons
      • mg_htonl
      • mg_crc32
      • mg_check_ip_acl
      • mg_url_decode
      • mg_url_encode
      • mg_print_base64
      • mg_print_esc
      • mg_print_hex
      • mg_print_ip
      • mg_print_ip_port
      • mg_print_ip4
      • mg_print_ip6
      • mg_print_mac
      • struct mg_iobuf
      • mg_iobuf_init
      • mg_iobuf_resize
      • mg_iobuf_free
      • mg_iobuf_add
      • mg_iobuf_del
Mongoose logo Mongoose
Mongoose is an embedded web server and all-in-one TCP/IP stack with TLS, MQTT, firmware OTA
FacebookCesanta Facebook page LinkedinCesanta Linkedin page TwitterCesanta Twitter page GithubCesanta Github page

Quick Links

Privacy Policy
Documentation
Licensing

Contact

Cesanta, 13 Edward Pl, Dublin 4, Ireland
+353 1 592 5476
support@cesanta.com

Thank you!