light sleep should do the job, but I have to do some testing.
Are there any data or "connections" lost after you wake up from light sleep?
light sleep should do the job, but I have to do some testing.
Are there any data or "connections" lost after you wake up from light sleep?
Hi,
I have a rather big program that has quite a few functions. I would also like to save some battery and therefore I want to send my M5Stack into sleep mode.
Program start;
execute SETUP() once: function A(), function B(), C();
LOOP(): function D(), function E(), START HERE SLEEP.
When sleep is over, my program starts again at the beginning executing the SETUP() function. Is there any way to resume my program where it stopped? Like with the next line of code or with the next function? I do not want to start again at setup().
LOOP(): function D(), function E(), START HERE SLEEP; Wake up from sleep; Resume with function F(), function G(). Start again with LOOP() function D(), E(), sleep,...
Hmm had something similar some time ago. Check for null values e.g. empty fields on the ble device.
The sensor had a problem.
Used another GY-91 and it works now.
Scanning...
I2C device found at address 0x68 !
I2C device found at address 0x75 !
I2C device found at address 0x76 !
done
Hey,
I have a M5Stack Basic Core (black). Few days ago I connected a GY-91 (10-DOF) sensor https://artofcircuits.com/product/10dof-gy-91-4-in-1-mpu-9250-and-bmp280-multi-sensor-module over I2C Grove (20 cm cable) to my M5Stack. The green light is ON on the external sensor, but I can't get the sensor to work (to read data from) with the M5Stack. I have tryed all possible libraries and code snippets you can find online regarding the MPU9250 and ESP32, but I had no success to get M5Stack working with the GY-91 sensor.
Then I checked for the I2C addresses https://learn.adafruit.com/i2c-addresses/the-list. MPU9250 should be at 0x68 or 0x69. If you read 0x75 and you have a MPU9250, you should get "0x71" as a response and if you have a MPU9255, you should get "0x73" as a response. I get no response at all.
Then I checked the I2C bus https://github.com/geronimoooooooo/ccpparduino/blob/master/I2Cscan().cpp to see what "devices" are connected, and all I get is "I2C device found at address 0x75"
To me it kinda looks like the M5Stack does not recognize the GY-91 on the I2C bus. Is this possible? They can not work together?
Has anyone had success in combining a M5Stack Basic Core with the external GY-91 (mpu9250)? Can anyone link a working library or a code snippet?
big thx
so guys, any news or comments on this topic?
would appreciate it
Hey guys,
This is my first post in this forum. I used the search but could not find a solution for my problem.
I would like to read the tx power level of BLE beacons with my M5Stack ESP32.
I get the rssi value but I would like to know the transmission power. I do not mean the 1Byte "transmitted/measured power" that you should receive on 1m range. I mean the power level that determines how strongly the beacon sends its broadcast (what the max. range should be).
I would like to read whether the beacon is configurated to send only at e.g. max. range of 2m or maybe 15m.
I use Arduino and PlatformIO with int8_t BLEAdvertisedDevice::getTXPower ()
http://www.neilkolban.com/esp32/docs/cpp_utils/html/class_b_l_e_advertised_device.html#a8c62ba653ba4f6fb904b6bc195620511
And I always get txPower: 0. using haveTXPower() returns false. But my smartphone with the usuals apps displays without and problems the txPower value (e.g. -20dBm that would indicate the ble beacon has only few meters max. range)
Did anyone had success with a M5Stack to read those txPower values?
Is there any code snippet that REALLY WORKS? There are planty online but they show 0 txPower and false on haveTxPower.
greetings
edit: further infos from platformIO
PLATFORM: Espressif 32 > M5Stack Core ESP32
HARDWARE: ESP32 240MHz 320KB RAM (4MB Flash)
Libs: M5Stack 0.2.5