HAHA
Dependencies: WebSocketClient mbed
trame.cpp@2:7515831bb5f5, 2014-02-24 (annotated)
- Committer:
- joGenie
- Date:
- Mon Feb 24 14:08:10 2014 +0000
- Revision:
- 2:7515831bb5f5
- Child:
- 3:350f07072089
Add file;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
joGenie | 2:7515831bb5f5 | 1 | #include "trame.hpp" |
joGenie | 2:7515831bb5f5 | 2 | |
joGenie | 2:7515831bb5f5 | 3 | Trame::Trame(PinName _tx, PinName _rx) : |
joGenie | 2:7515831bb5f5 | 4 | tx(_tx), |
joGenie | 2:7515831bb5f5 | 5 | rx(_rx) |
joGenie | 2:7515831bb5f5 | 6 | { |
joGenie | 2:7515831bb5f5 | 7 | } |
joGenie | 2:7515831bb5f5 | 8 | |
joGenie | 2:7515831bb5f5 | 9 | void Trame::sendATCommand(const char* command, int data) |
joGenie | 2:7515831bb5f5 | 10 | { |
joGenie | 2:7515831bb5f5 | 11 | Serial xbee(tx, rx); |
joGenie | 2:7515831bb5f5 | 12 | xbee.putc(0x10); |
joGenie | 2:7515831bb5f5 | 13 | } |