Fixed example code

Josh 2014-04-29 15:26:23 -07:00
parent 6310716fd5
commit 0dff37c5b3

@ -14,7 +14,7 @@ Callbacks:
- `send(address: number, data: table): boolean` - `send(address: number, data: table): boolean`
Sends data across the abstract bus. The table `data` is in the form of key-value pairs, e.g. Sends data across the abstract bus. The table `data` is in the form of key-value pairs, e.g.
``` ```
lua> component.abstract_bus.send(0xFFF, { action="dial", address="Losomdeh Salothirt Erpac" }) lua> component.abstract_bus.send(0xFFFF, { ["action"]="dial", ["address"]="Losomdeh Salothirt Erpac" })
``` ```
* See SGTech2 documentation for more info on the Abstract Bus. * See SGTech2 documentation for more info on the Abstract Bus.
- `maxPacketSize(): number` - `maxPacketSize(): number`