Communicate to bluetooth devices or wifi per at-commands

Dependents:   Nucleo_bt

at.h

Committer:
rainerraul
Date:
2018-08-16
Revision:
1:ce7fb335aa1b
Parent:
0:413f3c13a00a
Child:
4:96aa57261092

File content as of revision 1:ce7fb335aa1b:

#ifndef AT_H
#define AT_H

enum _IRQ {ON, OFF};

class  atterm
{
public:
    char buffer[128];
    char read_timed_buffer[128];
    char *getAnswer(uint32_t timeout);
    void device_init(unsigned long baud, _IRQ interrupt);
    void device_init1(unsigned long baud, _IRQ interrupt);
    void clear();
    void at_send(char *format, char *buf);
    void at_send1(char *format, char *buf);
    void debug_off(bool l);
    bool off;
    int a;
    char sign;    
} extern at0, at1;

#endif