Skip to content

Decreasing Gateway SRAM usage for arduino AVR boards

Florian edited this page Apr 29, 2017 · 5 revisions

So as to decrease the SRAm usage of the gateway you can decrease one or several of the following parameters:

Into pubsublicent.h

#define MQTT_MAX_PACKET_SIZE 128

Into IRremoteInt.h

#define RAWBUF 101 // Maximum length of raw duration buffer

Into RCSwitch.h.h

#define RCSWITCH_MAX_CHANGES 67

Into OpenMQTTGateway.ino reduce the size of ReceivedSignal buffer, for instance:

unsigned long ReceivedSignal[6][2] ={{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}};

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.