Closed pmarcinkiew closed 6 years ago
The sample was tested with Firefox Quantum:
The web browser displays 404 not found text message and big black square.
Device shell log:
TASH>>
TASH>>wifi startsta
*****************************************************************
* Samsung System LSI wifi application for t20 *
*****************************************************************
Link call back handles registered - per default!
Starting supplicant in foreground...
1262304013.481629: Successfully initialized wpa_supplicant
1262304016.575119: wl1: callling L2_packet_init:
1262304016.575119: wl1: Own MAC address: 28:6d:97:40:22:34
STA mode started successfully
TASH>>wifi scan
*****************************************************************
* Samsung System LSI wifi application for t20 *
*****************************************************************
Link call back handles registered - per default!
Successfully started scan...waiting for result!
Scan Result - networks:
BSSID RSSI SECURITY CH SSID
1) ae:5f:3e:ec:42:52 -35 [WPA2-PSK+AES] 6 SSID
SPRC_apidev
TASH>>wifi join SSID password
*****************************************************************
* Samsung System LSI wifi application for t20 *
*****************************************************************
Link call back handles registered - per default!
Joining network SSID
Security: wpa2_aes
Passphrase: password
1262304034.976395: wl1: Associated with ae:5f:3e:ec:42:52
1262304035.056227: wl1: WPA: Key negotiation completed with ae:5f:3e:ec:42:52 [PTK=CCMP GTK=CCMP]
1262304035.056227: wl1: CTRL-EVENT-CONNECTED
Connected to network: bssid: ae:5f:3e:ec:42:52, ssid: SSID
Successfully joined the network with SSID SSID
TASH>>ifconfig
wl1 Link encap: 28:6d:97:40:22:34 RUNNING: UP
inet addr: 0.0.0.0 Mask: 255.255.255.255 MTU: 590
lo0 Link encap: 00:00:00:00:00:00 RUNNING: UP
inet addr: 127.0.0.1 Mask: 255.0.0.0 MTU: 0
TASH>>ifconfig wl1 dhcp
IP address 192.168.43.60
Netmask 255.255.255.0
Gateway 192.168.43.1
Default DNS 192.168.43.1
TASH>>ls /sample/
ls : stat failed
TASH>>ls sample
ls : stat failed
TASH>>cd /rom/sample
cd : /rom/sample failed
TASH>>cd /rom
TASH>>ls
/rom:
.
samples/
test/
tools/
TASH>>cd samples
TASH>>ls
/rom/samples:
http-gpio-panel/
TASH>>cd http-gpio-panel
TASH>>pwd
/rom/samples/http-gpio-panel
TASH>>ls
/rom/samples/http-gpio-panel:
server.js
index.html
favicon.ico
TASH>>ifconfig
wl1 Link encap: 28:6d:97:40:22:34 RUNNING: UP
inet addr: 192.168.43.60 Mask: 255.255.255.0 MTU: 590
lo0 Link encap: 00:00:00:00:00:00 RUNNING: UP
inet addr: 127.0.0.1 Mask: 255.0.0.0 MTU: 0
TASH>>iotjs /rom/samples/http-gpio-panel/server.js
listening for connections on port: 8080
serving static: index.html
serving static: favicon.ico
This work was postponed.
Allows to add/remove gpio pins, set/monitor their state and config.
This code was committed to Samsung/master in PR #1282
IoT.js-DCO-1.0-Signed-off-by: Krzysztof Antoszek k.antoszek@samsung.com