Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Akash Ashok
@thehellmaker
I'm assuming since the frequency is around 180Hz - 500Hz the MCU is in Mhz its definitely capable. My question is since its a lot of data ESP has to stream can it handle it other wifi requests while its streaming voice. I think the answer is no. @igrr mentioned that ipstack has one thread and hence only one ip request is processed at any point. correct me if i am wrong here
Me No Dev
@me-no-dev
that is true but most transmissions are multipacket and there is time between the packets to handle other connections.
there is an ESP-Radio project and I have personally streamed PCM to the ESP which plays through I2S
you just need to go Async to be able to do it all at the same time
Akash Ashok
@thehellmaker
makes sense ....
Clemens Kirchgatterer
@everslick
@skorokithakis if it becomes really difficult to make them fit, you could put some components on the backside. like the A6 or ESP
Stavros Korokithakis
@skorokithakis
I have, there's a bunch of resistors and the SIM card on the back, @everslick
Clemens Kirchgatterer
@everslick
ic
Stavros Korokithakis
@skorokithakis
i'm measuring the current draw of the A6 and it's coming out to half a MILLIamp, can that be right?
i was expecting 200 mA at least
and of course it's not right, the multimeter probe was in the wrong place
yay
Germán Martín
@gmag11
Current may depend on mobile coverage quite a lot.
Data sheet value is the worst case
Stavros Korokithakis
@skorokithakis
ah, right
can anyone help me with this inconsistency? What my library does is try to autodetect the baud rate by sending "AT" and listening to a response, and later just proxies Serial <-> SoftSerial. the module mostly seems to be unresponsive when i try autodetection, but when I power-cycle it while the ESP is proxying, it works fine every time. i can't see any reason why i wouldn't be seeing any output from the module in the autodetection yet it works fine when just proxying raw bytes...
Stavros Korokithakis
@skorokithakis
also, i declared an int array like int rates[] = {115200, 9600, 1200, 2400, 4800, 19200, 38400, 57600};, can i get the size at runtime so i can loop over it?
ah, i found the problem, i wasn't sending a CR before the AT, so the previous autodetector commands were messing the module up
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?