10
YourMom
1d

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
  • 0
    @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.
Add Comment