Skip to content

Commit

Permalink
Cleanup of definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Northern Man authored and Northern Man committed Apr 1, 2021
1 parent ccea3a7 commit 38ee89a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
Binary file added E07-M1101D-TH_Usermanual_EN_v1.30.pdf
Binary file not shown.
5 changes: 5 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.pio
.vscode/.browse.c_cpp.db*
.vscode/c_cpp_properties.json
.vscode/launch.json
.vscode/ipch
2 changes: 0 additions & 2 deletions src/rtl_433_ESP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
#define ICACHE_RAM_ATTR IRAM_ATTR
#endif

#define ONBOARD_LED 2

extern "C"
{
#include "bitbuffer.h"
Expand Down
13 changes: 3 additions & 10 deletions src/rtl_433_ESP.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,14 @@
#include <functional>
#include "rtl_433.h"

#ifndef CC1101_FREQUENCY
#define CC1101_FREQUENCY 433.92
#ifndef ONBOARD_LED
#define ONBOARD_LED 2
#endif

#ifndef MINRSSI
#define MINRSSI -82 // DB above noise level
#endif

#define RF_RECEIVER_GPIO 4

#define RECEIVER_BUFFER_SIZE 2 // Pulse train buffer count
// #define MAXPULSESTREAMLENGTH 750 // Pulse train buffer size
#define MINIMUM_PULSE_LENGTH 50 // signals shorter than this are ignored in interupt handler
Expand All @@ -52,10 +50,7 @@ typedef struct RTL433PulseTrain_t
*/

/**
* (char *name, char *message, unsigned int modulation)
* name - name of device as defined in device signal decoder
* message - JSON formated message from device
* modulation - Type of signal modulation ( r_device.h )
*/
typedef void (*rtl_433_ESPCallBack)(char *message);

Expand Down Expand Up @@ -84,10 +79,8 @@ class rtl_433_ESP
*
* callback function signature
*
* (char *name, char *message, unsigned int modulation)
* name - name of device as defined in device signal decoder
* (char *message)
* message - JSON formated message from device
* modulation - Type of signal modulation ( r_device.h )
*/
void setCallback(rtl_433_ESPCallBack callback, char *messageBuffer, int bufferSize);

Expand Down

0 comments on commit 38ee89a

Please sign in to comment.