Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Stavros Korokithakis
@skorokithakis
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/
maybe the module is trying to autodetect baud too?
Germán Martín
@gmag11
You can use another ttl-usb to see what's on the line, connecting rx line. I don't know if I explain correctly. I did it so when programming my Firmata lib
Stavros Korokithakis
@skorokithakis
hmm, you think there will be something different? let me try that
Germán Martín
@gmag11
I mean
Stavros Korokithakis
@skorokithakis
i know, connect my FTDI's RX to the A6 TX to see what's there
but i already print everything that's coming in, so i don't know if there will be anything different
Germán Martín
@gmag11
Right
Stavros Korokithakis
@skorokithakis
let me try it and see though
hmm, that was a good idea
Stavros Korokithakis
@skorokithakis
the module is, indeed, not responding
is there a way to "clear the line" or something, when trying different baud rates?
it's odd, i see the module echoing the commands back to me, but no +OK
Stavros Korokithakis
@skorokithakis
okay, it looks like there's nothing wrong with my code or anything. the module is just not responding generally