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

Connect to Wifi ? #36

Open
TRiXER88 opened this issue Mar 18, 2019 · 6 comments
Open

Connect to Wifi ? #36

TRiXER88 opened this issue Mar 18, 2019 · 6 comments

Comments

@TRiXER88
Copy link

If I type wifi-sta-on it says it needs a SSID when I type wifi-sta-ssid "SSID" then it says again it needs a SSID. I tried all combinations. maybe you can help me.

Greetings Lukas

@quozl
Copy link
Collaborator

quozl commented Mar 18, 2019

wifi-sta-ssid is a defer, a vectored execution, analogous to a callback. You might do this before wifi-sta-on;

:noname  " SSID" ;  to wifi-sta-ssid

When not set, the word must-set-ssid is executed, which aborts with message wifi-sta-ssid needs to be set.

@TRiXER88
Copy link
Author

First of all thanks. I think it worked. But a Question, how can I show the IP Address? And can I connect via Telnet or something?

@MitchBradley
Copy link
Owner

The phrase ipaddr@ .ipaddr will show the IP address.

There is no canned Telnet server but there is a framework for acting as web server. serve-sensors.fth is an example of a web service that displays the state of a collection of sensors relevant to a plant-growing system. The key thing you have to define is a word to plug into the defer word "homepage". When you browse to port 80, homepage is called emit HTML that will be displayed in the browser.

@TRiXER88
Copy link
Author

Ok thanks. if I Type ipaddr@ .ipaddr I have Ip address 0.0.0.0 :/

@TRiXER88
Copy link
Author

Ok got my IP Address. The serve-sensors file is not working for me but thanks. I try to get a remote connection.

@MitchBradley
Copy link
Owner

serve-sensors.fth will not work unless you have all of those hardware sensors. Use it as an example.

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

3 participants