Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
network [2017/08/26 22:26]
arthur
network [2018/09/21 11:08] (current)
arthur
Line 210: Line 210:
  
 If your network interface doesn'​t work as it should, you can get some debugging information ( such as the current IP ) by sending the <​kbd>​net</​kbd>​ command ( <​kbd>​@net</​kbd>​ from pronterface ) command via the console ( USB or UART ). If your network interface doesn'​t work as it should, you can get some debugging information ( such as the current IP ) by sending the <​kbd>​net</​kbd>​ command ( <​kbd>​@net</​kbd>​ from pronterface ) command via the console ( USB or UART ).
 +
 +<​code>​
 +IP Addr: 192.168.1.100
 +IP GW: 192.168.1.254
 +IP mask: 255.255.255.0
 +MAC Address: 00:​1F:​11:​02:​04:​C9
 +</​code>​
 += API
 +
 +Creating a custom interface, a script that talks to a Smoothieboard,​ or helping with Smoothie'​s web interface ( please do ! ) ?
 +
 +Here's the API you can expect the board to answer to over HTTP.
 +
 +== GET /sd/file
 +
 +Retreives the content of a file from the SD card. You can use this to retrieve the configuration file, but make sure to try both "/​sd/​config"​ and "/​sd/​config.txt"​ as both are valid filenames.
 +
 +== GET /query
 +
 +Returns the same as the "?"​ command over serial, or the "get status"​ command over any interface.
 +
 +Example output : 
 +
 +<​code>​
 +<​Idle|MPos:​-700.0000,​0.0000,​360.0000,​0.0000|WPos:​-700.0000,​0.0000,​360.0000|F:​4000.0000|T:​163.5,​0.0|B:​178.4,​0.0>​
 +</​code>​
 +
 +Much faster than sending "get status"​ using /command
 +
 +== POST /command
 +
 +Parameter : The command you want to execute as the POST data/​parameter
 +
 +Returns : Whatever the command returned
 +
 +== POST /​command_silent
 +
 +Parameter : The command you want to execute as the POST data/​parameter
 +
 +Returns : Nothing. Faster than /command, prefer whenever possible
 +
 +