Some debug.

This commit is contained in:
2024-08-01 19:34:58 +03:00
parent 6498d20378
commit 061ba2a859
6 changed files with 26 additions and 23 deletions

View File

@ -61,7 +61,7 @@ func (d *dialer) Send(number, msg string) error {
// Reads all new messages
func (d *dialer) ReadNew() ([]string, error) {
resp, err := d.port.Send("AT+CMGL")
resp, err := d.port.Send("AT+CMGL=\"ALL\"")
if err != nil {
return nil, fmt.Errorf("AT+CMGL request: %w", err)
}