add waiting for ELM327 before init state

This commit is contained in:
Sem van der Hoeven
2024-01-21 13:59:49 +01:00
parent 3f19ab4b7d
commit 5fbafa3dc9
5 changed files with 29 additions and 10 deletions

View File

@@ -33,6 +33,8 @@ Be sure to disconnect the TX and RX pins from the BT module when programming the
#ifndef OBD2_ELM327_H
#define OBD2_ELM327_H
#include "ELMduino.h"
#ifdef __cplusplus
extern "C" {
#endif
@@ -68,6 +70,7 @@ enum BluetoothState
*/
typedef struct obt2_elm327_tag
{
ELM327 *elm327;
enum BluetoothState bt_state;
void (*on_state_change)();
} obd2_elm327_t;