-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more than 8 switches in Sonoff RF Bridge #1133
Comments
Apparently, increasing the number of switches have a big impact on available memory. I'm trying to find the reason. |
OK, api module was the culprit here, it was taking a lot of memory for each extra relay. You can checkout dev branch and update the hardware.h file to support 16 relays without issue. From them on other memory issues arise with the web support. |
I was looking for this feature. Any idea when this will be available in builds? Thanks! |
With next release. By the end of August, I guess. |
The new firmware can be upgraded via web page of existing firmware?. |
Yes, it can be upgraded from the web UI and yes, there will be (not yet but soon) the option to change the number of switches from the web UI. |
While changing I also noticed, that the newly added additional 8 relays would have a garbage |
Should I open new issues for these 2 and reference back to this? |
@peterhoeg For rfbridge see #1308. |
Yeah, #1308 is the same issue behind peterhoeg's problem, but it seems like in his case the data comes from uninitialized memory (hence why it is "garbage" in his case). Possibly an index programming error somewhere, in some loop where the logic wraps around the hardcoded old limit or some such. Not sure why the issue is closed. @xoseperez could you take a look? Since this will likely manifest in potentially destructive ways (whenever a write operation occurs it's going to be out of bounds too, thrashing whatever is there most likely). |
I would like to add more than 8 switches from the default prebuilt binary. I have modified the arduino.h and hardware.h to accommodate 16 switches and successfully uploaded to the RF Bridge. After the web page loads, the page is randomly not loaded properly and the RF switch capturing page is not capturing full codes of RF. What am I missing?
The text was updated successfully, but these errors were encountered: