Driver for SIM808 cellular module
.
├── data # Assets
├── include # Core library headers
├── src # Core library sources
├── tests # Unit tests for core library
└── tools # Tools
└── CommandLineTool # Command-line tool for testing the driver
- C++ compiler with
C++20
support - CMake
- non-Boost asio
- ext -
ext::result
- GTest (for unit tests only)
To build the driver, go to the project root directory and execute the following commands:
# Prepare the build system
cmake -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_CXX_FLAGS="-std=c++20" \
-S . -B build/debug
# Build
cmake --build build/debug --target Sim808
Name | Description | Since |
---|---|---|
Sim808 |
Driver | 0.1.0 |
Sim808.Tests |
Unit tests for the driver | 0.1.0 |
Sim808.CommandLineTool.Core |
Command-line tool core library | 0.1.0 |
Sim808.CommandLineTool |
Command-line tool | 0.1.0 |
Sim808.CommandLineTool.Tests |
Unit tests for command-line tool | 0.1.0 |
Name | Description | Default | Since |
---|---|---|---|
SIM808_BUILD_TESTS |
Generates a build target for unit tests | OFF |
0.1.0 |
SIM808_BUILD_CLT |
Generates a build target for the command-line tool | OFF |
0.1.0 |
- Short Message Service (SMS)
- Retrieving a list of messages from the specified message storage
- Sending messages
- Deleting messages (by index and from the specified message storage)
An auxiliary tool implemented for testing purposes that allows you to test driver functionality from a command line.
Commands have the following syntax: <command> [<parameter> = "..."[, ...]]
. There
are no spaces before and after the =
sign (added to the top to avoid ambiguity for
fonts with ligatures).
Example:
sms:send to="+7xxxxxxxxxx" text="Hi!"
Command | Description | Parameters | Since |
---|---|---|---|
sms:list |
Get a list of messages | None | 0.1.0 |
sms:send |
Send a message | to , text |
0.1.0 |
sms:delete |
Delete messages | index , del_type |
0.1.0 |
See below for more information about the commands.
Parameters:
to
- receiver numbertext
- message textindex
- message indexdel_type
- defines which messages should be deleted
To delete a single message with the specified index:
sms:delete index="3"
To delete messages from the specified message storage:
sms:delete del_type="<type>"
, where type takes one of the following values:
read
- delete only read messagesunread
- delete only unread messagessent
- delete only sent messagesunsent
- delete only unsent messagesinbox
- delete read and unread messagesall
- delete all messages
To generate docs, go to the project root directory and execute the following command:
doxygen Doxyfile
Click this to open index page.
Oleg E. Vorobiov isnullxbh@gmail.com
This project is distributed under the MIT License. See LICENSE for more information.