Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Michael Miller
@Makuna
'sizeof (rates)/sizeof (rates xamarin/xamarin-android@a16673d)', usually you will a macro defined as countof () that is just this.
Stavros Korokithakis
@skorokithakis
do you mean sizeof(rates)/sizeof(int)?
oh
ratesxamarin/xamarin-android@a16673d?
damn
Michael Miller
@Makuna
Wow, that got mangled, the last part was rates indexed at zero
Stavros Korokithakis
@skorokithakis
why does this keep happening?
which makes sense, because it's yours :P
axamarin/xamarin-android@a16673d
Michael Miller
@Makuna
Yup
Stavros Korokithakis
@skorokithakis
thanks!
a1
a[2]
a[3]
the hell?
Michael Miller
@Makuna
It's some weird markup feature I guess.
Stavros Korokithakis
@skorokithakis
yeah
bah, i can't get this module to work consistently at all
now it just stopped working again
:/
probonopd
@probonopd
@me-no-dev remember the Hue emulator? Maybe it should be rewritten using your Async libraries?
kiralikbeyin
@kiralikbeyin

I am trying to append a file at the end of -2 char

   File ffyenicihaz = SPIFFS.open("/c/cihazlar.json", "a+");

    ffyenicihaz.seek(-2 ,SeekEnd);
    Serial.println(ffyenicihaz.position());

position is looking ok but it write to end not end-2

any idea?
Germán Martín
@gmag11
@kiralikbeyin I guess that a+is the reason. Try to open the file with w+parameter
kiralikbeyin
@kiralikbeyin
File ffyenicihaz = SPIFFS.open("/c/cihazlar.json", "w+");

    ffyenicihaz.seek(-2 , SeekEnd);
    Serial.println(ffyenicihaz.position());

    ffyenicihaz.seek(ffyenicihaz.size() -2, SeekSet);
    Serial.println(ffyenicihaz.position());

    ffyenicihaz.seek(ffyenicihaz.position() -2, SeekCur);
    Serial.println(ffyenicihaz.position());
all of them returning 0 , also tried "w"
Germán Martín
@gmag11
I'm try to move from Visual Studio to Platformio. I cannot get autocomplete working with ESP specific functions and libraries. May you confirm if autocomplete and Goto Declaration are working in your side? If so, could you give me any indication?
@kiralikbeyin W alone deletes the file before creating it. Are you sure it does exist?
kiralikbeyin
@kiralikbeyin
yes there was always json file , tried 4-5 times with w+ and w also
Germán Martín
@gmag11
¿? No guess
probonopd
@probonopd
hi, is https://github.com/esp8266/arduino-esp8266fs-plugin supposed to upload SPIFFS over WIFI when the OTA port is selected?
(it appears to do something but I don't think it's acually working for me...)
Stavros Korokithakis
@skorokithakis
Damnit, these A6 modules are $1.8 each and a few thousand dollars of your time spent banging your head against the wall
kiralikbeyin
@kiralikbeyin
@gmag11 thanks i hope 430 man here one of them worked with file position :)
Me No Dev
@me-no-dev
@probonopd yes I do :)
have to dig what I have
probonopd
@probonopd
got some contributions on https://github.com/probonopd/ESP8266HueEmulator recently
@me-no-dev
Me No Dev
@me-no-dev
will give it a go :)
probonopd
@probonopd
cool! @me-no-dev
Stavros Korokithakis
@skorokithakis
can anyone look at this function and tell me if they think i'm doing something obviously wrong? https://github.com/skorokithakis/A6lib/blob/master/A6lib.cpp#L192
Stavros Korokithakis
@skorokithakis
this is the output: https://www.pastery.net/puzrxf/
Germán Martín
@gmag11
@skorokithakis Check parenthesis in A6WaitFor, in while condition. Add more debug info to check more variables too.
Stavros Korokithakis
@skorokithakis
@gmag11 what's wrong with the parentheses (i think this is related to a bug i was having)? as for the variables, i don't know if there's something to check, there's just no output :/
Germán Martín
@gmag11
Ok not sure if == is calculated after + or it is the opposite. Check the result of that operation adding some logs
Stavros Korokithakis
@skorokithakis
@gmag11 i think you're right, sometimes i saw an "AT" come in as the correct reply, but the operation still timed out
@gmag11 i've added more parentheses to make sure https://github.com/skorokithakis/A6lib/blob/master/A6lib.cpp#L280
hm, i don't know what's going on... it seems that the module may just not be ready
this, especially, is very odd: https://www.pastery.net/qyvpfz/