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.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This char buffer is only used to build up an iBeacon frame and then passed on to startImmediateBeacon.
Having the char array declared in the class reserves 50 bytes for the whole lifetime of the program. That's a waste.
I'd propose to remove it and to declare a (stack) char buffer in iBeacon::begin().
The size of the buffer (IBEACON_FRAME_SIZE) should be done with # ifndef / # define / # endif, so that it can be overruled if there is a need to.
The text was updated successfully, but these errors were encountered:
This char buffer is only used to build up an iBeacon frame and then passed on to startImmediateBeacon.
Having the char array declared in the class reserves 50 bytes for the whole lifetime of the program. That's a waste.
I'd propose to remove it and to declare a (stack) char buffer in iBeacon::begin().
The size of the buffer (IBEACON_FRAME_SIZE) should be done with # ifndef / # define / # endif, so that it can be overruled if there is a need to.
The text was updated successfully, but these errors were encountered: