10
YourMom
10d

Learning embedded C/C++ on some TI chips. Need an httpclient for some specific tasks. The docs for the library are almost non-existent. No examples. I search and find examples from 7 years ago (none official). Wild.

There was another library I was using, but apparently it has internal issues and is not being updated anymore. I am using the "supported" library apparently.

Writing network code for desktop: easy peasy. Writing it for embedded: wtf is this shit?

Comments
  • 3
    At least it's HTTP and not TLS/SSL/AES... that shit makes it orders of magnitude more complicated. Almost worth setting up an HTTPS -> HTTP downgrade proxy....
  • 2
    @AlgoRythm yeah. I had to do ssl for opcua on a linux system. It was mostly plug and play, but setting up keys was kind of a pain. We had a key embedded, but it kept throwing errors on third party software. So I finally just made it so you could make your own keys otherwise we don't provide any. I even wrote a manual about how to create your own self signed keys using magic software you could download. It is nice software and it saved me time. Keys are the customers' responsibility.

    For this application there is support for tls, but we get to ignore it for now.
  • 2
    Yes agree, if it's just http with sockets, no biggie.
  • 1
    Why not use a different protocol like MQTT?

    Otherwise I do remember a simple SSL library but that might have been a ESP32/arduino thing
  • 1
    @BordedDev we are talking to a piece of equipment that needs us to make get requests with http. It feels very hacky to me. Jank personified.
  • 1
    @YourMom Very much agreed if it must get http
  • 2
    You dont need to use the official library. You can cross compile literally any cpp http lib. As long as you wrap where the data gets sent. Its a different story for the networking stack. (Layer 1-3) That one is pretty much vendor dependant unless you want to make the effort.
  • 1
    @galena yeah, I was wondering if we could use libcurl. Not sure it will fit though. Space is limited.
  • 2
    @YourMom Compiler Flags are your friend!
Add Comment