Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 21:21 26 Nov 2024 Privacy Policy
Jump to

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: Netherlands
Posts: 144
Posted: 12:03am 18 Jan 2024
Copy link to clipboard 
Print this post

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: Australia
Posts: 6098
Posted: 02:47am 18 Jan 2024
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 9115
Posted: 11:11am 18 Jan 2024
Copy link to clipboard 
Print this post

Jim

Please could you try the attached - untested


PicoMiteWeb.zip
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9115
Posted: 01:02pm 18 Jan 2024
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 6792
Posted: 02:41pm 18 Jan 2024
Copy link to clipboard 
Print this post

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: Australia
Posts: 6098
Posted: 07:42pm 18 Jan 2024
Copy link to clipboard 
Print this post

  matherp said  Jim

Please could you try the attached - untested


PicoMiteWeb.zip


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


To reply to this topic, you need to log in.

© JAQ Software 2024