GithubHelp home page GithubHelp logo

support for int? about tinyconsole HOT 5 OPEN

real-bombinho avatar real-bombinho commented on June 12, 2024
support for int?

from tinyconsole.

Comments (5)

hsaturn avatar hsaturn commented on June 12, 2024 1

TinyString should not be used. Unit test are not passing on github (while they are ok on my computer, which is precisely the reason for which they should not be used).
But I take the point. This will be done once unit test are ok, but for the moment I have a lot more important to deal with the library.

Thanks for the suggestion

from tinyconsole.

hsaturn avatar hsaturn commented on June 12, 2024 1

You may think about upgrading to the latest version. Because I know there is a problem with TinyString. Probably a memory fault or something like this.

I've removed the dependency with TinyString in latest versions because of this.

Using TinyString is not safe. Once fixed, TinyString will save memory but yet, try to avoid it.

from tinyconsole.

real-bombinho avatar real-bombinho commented on June 12, 2024

The reason for my usage is the dependency in TinyMqtt. It compiles perfectly fine on my machine(s) too. And for RP2040 it compiles nicely with the suggested change.

No rush, all working here anyway.

from tinyconsole.

real-bombinho avatar real-bombinho commented on June 12, 2024

Can I suggest commenting or deleting in TinyConsole.h line 3 '#include "TinyString.h" ' ?

If I understand correctly then this library is not in use and TinyMqtt in the latest version compiles (and works) as expected, once this line is commented.
I have excluded TinyString from my test bed and it throws errors otherwise as it appears to attempt using TinyString from the installed 0.9.6

from tinyconsole.

hsaturn avatar hsaturn commented on June 12, 2024

Yes, 0.9.6 uses TinyString, but this is not the latest version. In fact TinyMqtt 1.0.0 is released but not handled by IDE's and this is a chance, because 1.0.0 is buggy (not revealed by unit tests :-()

TinyString makes TinyConsole unit tests fails on github, while they are running ok under Linux... Strange behaviour that makes me think about a memory corruption.

TinyString should be replaced with std::string with no error.

If I understand correctly then this library is not in use and TinyMqtt in the latest version compiles (and works) as expected, once this line is commented.

This lib is used with my roomba project (at least).

from tinyconsole.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.