Skip to content

Commit 412a064

Browse files
authored
Add PHO library by fxmorin
1 parent 3e85e74 commit 412a064

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ The simplest way to get started is to try one of the examples below.
2020

2121
#### Libraries
2222
- [Javascript Library by Beardicus](#javascript-library-by-beardicus)
23+
- [PHP Library by fxmorin](#php-library-by-fxmorin)
2324

2425
#### Protocol details
2526
- [Making a connection](#making-a-connection)
@@ -59,6 +60,9 @@ Great little app to plot your SVG files directly to Line-us. Available as [insta
5960
### Javascript Library by Beardicus
6061
If you're thinking of writing some Javascript you should definitely check out this library as it will make your life *much* easier. It handles connection, queueing and all of the things you really don't want to do yourself. Works in the browser as well as with Node. Everything you need is at [Beardicus's GitHub](https://github.com/beardicus/line-us)
6162

63+
### PHP Library by fxmorin
64+
A library created by fxmorin to allow you to use your Line-us with PHP. Available at [fxmorin's GitHub](https://github.com/fxmorin/line-us)
65+
6266
### Making a Connection
6367
The default name for Line-us is `line-us`, although it can be changed using the `M550` Gcode command or using the App. Line-us supports mDNS (Bonjour) so by default the hostname will be `line-us.local` and it listens on port 1337. The connection to Line-us can be tested with a telnet client by using the command `telnet line-us.local 1337`. On a successful connection Line-us will respond with a `hello` message followed by `KEY:value` pairs for `VERSION` (firmware version number) `NAME` (the name of the Line-us) and `SERIAL` (the serial number of the Line-us). The `hello` message (like all messages from Line-us) is terminated with `\r\n\0`. It is **very important that the full `hello` message is read from the socket including the `\0` before any commands are sent**.
6468

0 commit comments

Comments
 (0)