Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: libmDot-Custom MTS-Serial
Fork of mDot_AT_firmware_CUSTOM by
To change channel plans replace AS923 with AU915, EU868, KR920 or US915 on line 15
#define CHANNEL_PLAN CP_AS923
main.cpp@4:666017851052, 2015-08-18 (annotated)
- Committer:
- Mike Fiore
- Date:
- Tue Aug 18 11:21:43 2015 -0500
- Revision:
- 4:666017851052
- Parent:
- 1:e52ae6584f1c
- Child:
- 9:ff62b20f7000
update mdot-firmware to 0.1.2
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Mike Fiore |
4:666017851052 | 1 | #include "mbed.h" |
Mike Fiore |
4:666017851052 | 2 | #include "mDot.h" |
Mike Fiore |
4:666017851052 | 3 | #include "CommandTerminal.h" |
Mike Fiore |
4:666017851052 | 4 | |
Mike Fiore |
4:666017851052 | 5 | Serial debug(USBTX, USBRX); |
Mike Fiore |
4:666017851052 | 6 | |
Mike Fiore |
4:666017851052 | 7 | mts::MTSSerial serial(XBEE_DOUT, XBEE_DIN, 512, 512); |
Mike Fiore |
4:666017851052 | 8 | |
Mike Fiore |
4:666017851052 | 9 | int main() |
Mike Fiore |
4:666017851052 | 10 | { |
Mike Fiore |
4:666017851052 | 11 | debug.baud(115200); |
Mike Fiore |
4:666017851052 | 12 | |
Mike Fiore |
4:666017851052 | 13 | mDot* dot = mDot::getInstance(); |
Mike Fiore |
4:666017851052 | 14 | |
Mike Fiore |
4:666017851052 | 15 | debug.baud(dot->getDebugBaud()); |
Mike Fiore |
4:666017851052 | 16 | serial.baud(dot->getBaud()); |
Mike Fiore |
4:666017851052 | 17 | |
Mike Fiore |
4:666017851052 | 18 | CommandTerminal term(serial, dot); |
Mike Fiore |
4:666017851052 | 19 | |
Mike Fiore |
4:666017851052 | 20 | term.start(); |
Mike Fiore |
1:e52ae6584f1c | 21 | } |