Skip to content

Commit

Permalink
refactor: Add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
selengalp committed Jan 17, 2024
1 parent 235c4f0 commit e2cfc28
Showing 1 changed file with 47 additions and 2 deletions.
49 changes: 47 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,47 @@
# atcomv2
AT communication library for golang
# atcomv2
AT communication library and cli tool for cellular modules.

# What does it do?
This library is intended to be used with cellular modules that support AT commands. It provides a simple interface to send and receive AT commands and parse the responses. It also provides a cli tool to send AT commands to the module and receive the responses on the terminal. Both library and cli tool have auto detection of the serial port of the supported cellular modules.

# Supported modules
Listed in modems.go file in the library.

# Installation
```
go get github.com/sixfab/atcomv2
```

# Usage
## Library
Run the example code.

```
cd examples
go run test.go
```

## CLI Tool
Build the cli tool.

```
cd pkg/cli
go build -o atcom
```

Run the cli tool.

List the available commands.
```
./atcom -h
```

Send AT command to the module.
```
./atcom AT
```

Send AT command to the module and wait for the desired response for 5 seconds.
```
./atcom AT+CREG? -d "+CREG: 0,1" -t 5
```

0 comments on commit e2cfc28

Please sign in to comment.