Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : PicoMite/VGA/Web V5.08.00: Release candidates
Page 2 of 2 | |||||
Author | Message | ||||
JanVolk Senior Member Joined: 28/01/2023 Location: NetherlandsPosts: 144 |
Thank you. From now on, use files with wildcards, which is much easier, and use that example in a program. Jan |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6098 |
Webmite WEB TCP CLIENT REQUEST is not always saving the last packet. The following code WEB OPEN TCP CLIENT "api.openweathermap.org",80 WEB TCP CLIENT REQUEST b$,m%(),10000 PAUSE 200 WEB CLOSE TCP CLIENT PRINT "Length is ";LLEN(m%()) LONGSTRING PRINT m%() will return a short string if the "pause 200" delay is not used before closing the stream. It doesn't seem to matter if the reply is 2 or 20 packets long. It doesn't matter if I am retrieving from my local network or across the WWW. The same 200mS delay is needed. Replies that fit into one packet don't need the delay before closing. Jim VK7JH MMedit MMBasic Help |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9115 |
Jim Please could you try the attached - untested PicoMiteWeb.zip |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9115 |
Forgot to mention some time ago. The VGA version can now optionally use different pins OPTION VGA PINS HSYNCpin, BLUEpin The command changes the pins used for VGA display output allowing more flexibility in PCB design or wiring. “HSYNCpin” defines the start of a pair of contiguous GP numbered pins that are connected to HSYNC and VSYNC “BLUEpin” defines the start of four contiguous GP numbered pins that are connected to BLUE, GREEN_LSB, GREEN_MSB, and RED. |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6790 |
Oh brilliant!!!!! Thanks. :) I'll have to try that on a RP2040-Zero. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6098 |
Yes! That seems to have fixed it. 2k and 20k replies are returned in full without any need for a delay. Thanks. Jim VK7JH MMedit MMBasic Help |
||||
Page 2 of 2 |
Print this page |