Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP8266 test-socket.fth #42

Open
andrewtholt opened this issue Aug 16, 2019 · 1 comment
Open

ESP8266 test-socket.fth #42

andrewtholt opened this issue Aug 16, 2019 · 1 comment

Comments

@andrewtholt
Copy link

andrewtholt commented Aug 16, 2019

I notice that Mitch has pushed an example file (test-socket.fth) to the repo.

As I understand it the test word "probe-ssh" sets up a a bunch of callbacks connects to the ssh port of a given machine, displays the string return by ssh and disconnects.

This works fine.

I have modified it to connect to a custom socket server. The connect callback sends "PING\n" and the server responds with "Pong!\n", and disconnects.

This too works fine.

I have made the changes to set respond to a callback that simply displays the stack and put false on the stack. With just this change it works.

What I am struggling with is sending a subsequent command and getting the response.

If at the prompt I send a second command (e.g. " PING"n" server-pcb tcp-write .) I get 0 o/p then

ok Tried to execute a null token

Any advice Mitch ?

Regards,
Andrew

@MitchBradley
Copy link
Owner

You could try "debug receiver" before issuing the second command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants