stanleyhuangyc / Freematics

Official source code repository for Freematics
https://freematics.com
430 stars 349 forks source link

feat(teleserver, build) MAX_CHANNELS set from CLI #171

Open ankostis opened 1 year ago

ankostis commented 1 year ago

If my understand is correct, the build-time default value MAX_CHANNELS=16 limits the maximum simultaneous devices that can transmit data to the teleserver. Hence it's a quite frequent need to increase this value for those of use with multiple devices.

Currently it is impossible to change MAX_CHANNELS without modifying the Makefile file (under git-control), which is is error-prone when transferring server installations.

With the changes here, it is possible to use this make command to increase the channels on build-time:

make MAX_CHANNELS=64
ankostis commented 1 year ago

Apologies for having to delete my fork, have now restored my PR branches.