Shop OBEX P1 Docs P2 Docs Learn Events
Question about WiFi Modules #32420D / 32420S — Parallax Forums

Question about WiFi Modules #32420D / 32420S

The various wireless mode commands are POST commands. I don't know the convention for escapes (like for end-of-line) other than "%". Anyone have a link for the standard?

Comments

  • Mike Green wrote: »
    The various wireless mode commands are POST commands. I don't know the convention for escapes (like for end-of-line) other than "%". Anyone have a link for the standard?
    What are you trying to do?

  • I'd like to load a binary file into the file system. These could be binary files for a Propeller or Basic Stamp
  • Mike Green wrote: »
    I'd like to load a binary file into the file system. These could be binary files for a Propeller or Basic Stamp
    You should be able to load a binary file without any special encoding. Everything after the HTTP header can be binary.

  • How does the POST know where the end of the data comes? I didn't see a byte count, so there's a delimiter which needs escaping if it occurs in the data. Then the escape needs an escape ...
  • It uses the Content-Length field in the HTTP header.
  • By the way, be aware that you can't load a Propeller binary that is more than about 2K bytes. This is usually used to load a second-stage loader. That's the way proploader works.
  • Thanks. I knew about the 2K limit.
  • You can load a full 32k Propeller binary with load-file but you have to write it to the flash filesystem first. However, it's very slow since you're using the Propeller's ROM loader. The second-stage loader used by proploader is a lot faster.
Sign In or Register to comment.