Remote web communication with the basic stamp w/ PINK?
bshack
Posts: 13
What is the best way to communicate with the basic stamp/PINK network card remotely and automatically? So I can write a web app on a remote server that connects to the basic stamp/PINK and updates a variable on it automatically without human intervention?
Comments
I don’t know about being the ‘best’ method, but one I have worked with is sending UDP packets between units. The BASIC Stamp can do whatever it wants with the data and communication with the PINK Module is simplified because you’re only dealing with a couple of variables. I hope this helps. Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
NBVARUDP VAR Word
DO
SEROUT 8,396,[noparse][[/noparse]"!Nb_varST, bit 4"]
SERIN 7,396,[noparse][[/noparse]DEC NBVARUDP]
DEBUG DEC NBVARUDP
HIGH 14
PAUSE NBVARUDP
LOW 14
PAUSE NBVARUDP
LOOP
Edit: I misspelled a word
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
lets see what this does... KA BOOM (note to self do not cross red and black)
To get bit 4 you can reference NBVAR.BIT4· I hope this helps.· Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support