-
Notifications
You must be signed in to change notification settings - Fork 108
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
Fix main.ino Welcome Message, BLE client, OLED client and Console. #56
Conversation
… WebSocketClient. Rewrite of all History functions. Added settings to save username and interface selection (WiFi or BLE) permanent on the device. Added option to switch between WiFi and BLE (default is WiFi) without recompilation.
Great work @beegee-tokyo ! It looks like this should work. For some reason, I'm having trouble compiling this with platformio. It is suggesting that the LoRaLayer2 and ArduinoJSON libraries cannot be found when compiling the
When I check their library registry, I'm able to find the libraries. Obviously, LoRaLayer2 is being pulled in successfully by other parts of the code, not sure why the History files are having trouble. Any ideas, did you make any changes to your platformio file to get these to compile? |
😫 Differences between Linux and Windows 7. In Windows there is no difference between capital and non-capital letters in filenames. In and in |
I see, that would have never crossed my mind, I'm glad you knew the solution. It is compiling for me now. This all looks great. The only issue I see is that the OLED client does not appear to be displaying messages to the screen on the ttgo-lora-v2 board. Not sure if this is something you didn't do, or if it is a bug. Unless you know a quick solution, I will merge without this being fixed and we can fix it in a later commit or merge. Thanks for getting almost everything working. |
OLED client is working fine for me, but I am testing with a display that has a SH1106 chip, not with a SSD1306 chip. But that's just some code lines differences where the include is done and where the display class is declared. The rest is the same. I just looked into the sources and cannot find any reason why it shouldn't work. |
I have only tested with ttgo-lora-v2. The display is working because the client and route numbers are being updated, the OLED client just doesn't seem to receiving messages from the server, I will dig into it a little more, I also see no apparent why it wouldn't be working. |
I haven't made any progress on resolving my OLED issue, I'm going to go ahead an merge this. I'll make a new commit or merge when I finally solve my issue. |
main.ino Welcome Message, the datagram.message length was wrong. Simplified the creation of the messages and make sure their length is correct.
BleUartClient fixed. Only small change when creating the datagram (double message ID).
OLED client simplified and fixed.
Console needs more testing. Not sure how it works with different line ends (CR/LF versa LF only).