Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 26 23:38
  • Jan 26 23:09
    stale[bot] closed #3477
  • Jan 26 23:09
    stale[bot] commented #3477
  • Jan 26 22:38

    me-no-dev on master

    Minimize HardwareSerial Receive… (compare)

  • Jan 26 22:38
    me-no-dev closed #3664
  • Jan 26 22:35
  • Jan 26 22:33
    me-no-dev synchronize #3664
  • Jan 26 22:26

    me-no-dev on bt-serial-overhaul

    (compare)

  • Jan 26 22:25

    me-no-dev on stickbreaker-patch-1

    (compare)

  • Jan 26 22:21

    stickbreaker on stickbreaker-patch-2

    (compare)

  • Jan 26 22:20

    me-no-dev on master

    fix removeApbChangeCallback() e… (compare)

  • Jan 26 22:20
    me-no-dev closed #3675
  • Jan 26 22:18
  • Jan 26 21:58
    dok-net synchronize #2849
  • Jan 26 21:50
    fabiuz7 commented #2849
  • Jan 26 20:26
    chegewara commented #3668
  • Jan 26 20:11
    cyberman54 commented #3675
  • Jan 26 20:09
    stale[bot] closed #3478
  • Jan 26 20:09
    stale[bot] commented #3478
Me No Dev
@me-no-dev
32bit is actually the default way
it's faster
ESP.getFreePsram() should give you only the PSRAM free bytes
Marc MERLIN
@marcmerlin
@me-no-dev : I am using ESP.getFreePsram, that works fine.
But when I enable PSRAM, PSRAM size shows up in heap_caps_get_free_size(0).
I guess I can do heap_caps_get_free_size(0) - ESP.getFreePsram to get actual 32bit RAM free
32bit RAM is faster, I agree, but won't the CPU fault if you run an 8 bit instruction on it?
Me No Dev
@me-no-dev
heap_caps_get_free_size(MALLOC_CAP_INTERNAL);
what is 0?
Marc MERLIN
@marcmerlin
I got that from a library I was using, not sure why it's using '0'
Me No Dev
@me-no-dev
0 I think means ALL
Marc MERLIN
@marcmerlin
that works much better, thank you
Ben
@bzeeman
@chegewara Everywhere I look on the internet are references to your work
chegewara
@chegewara
Sorry @bzeeman
I will stop posting on internet
What this time did you see
ben-mkiv
@ben-mkiv
can someone recommend a small 3.7v lipo battery for esp32? i want something that lasts and doesnt blow up...
chegewara
@chegewara
Anything but Samsung battery?
ben-mkiv
@ben-mkiv
:-D
after some more research i will probably go with a renata one
they seem to have protection circuit on the packs
chegewara
@chegewara
Btw @bzeeman, recently people are sending me emails asking about esp32 hid client code, because it's hard to ask in repository on github
Or on forum
Me No Dev
@me-no-dev
I have full HID lib in merge request in IDF (the work repo)
BT and BLE host and device
will add nimble soon as well
tobozo
@tobozo
@me-no-dev @atanisoft thanks to you I couldn't have done this without your insight https://github.com/tobozo/ESP32-targz
Clemens Kirchgatterer
@everslick
@tobozo cool!!! and LOL at the logo! :-D
bobcroft
@bobcroft
@tobozo That logo is simply brilliant. love it! Well done.
hirenumradia
@hirenumradia
Hey, does anyone know how to use ESP-BLE-MESH inside of Arduino?
All I can find at the moment is implementation written in C
Im a C N00B so want to avoid working with it if possible
I am using a ESP-WROOM-32
lbernstone
@lbernstone
No clue, but there is WiFi mesh. https://github.com/lbernstone/ESP_WiFiMesh
lbernstone
@lbernstone
BLE-mesh is an IDF 4.0 feature. Since me-no-dev just released the 4.0 beta branch 2 days ago, I'm guessing nobody has written a c++ wrapper for it.
ben-mkiv
@ben-mkiv
before i waste a lot of time writing my own lib, is there some generic lib for "settings" which someone can recommend?
Me No Dev
@me-no-dev
did you try Preferences?
ben-mkiv
@ben-mkiv
nope, i'll look into it
guess i've to implement caching for UI on my own then?
Me No Dev
@me-no-dev
you have all libs. Preferences saves to NVS
what you save is surely up to you :)
Michael Shamash
@mshamash
Hello! I'm wondering if anyone has experience using Husarnet for P2P communication with ESP32 devices? (so that device1 can talk to device2 over the internet)
Jeroen88
@Jeroen88
@atanisoft could you please help? I am new to pio. I am trying to compile a project using PlatformIO with esp-idf and Arduino. In platformio.ini I have: platform=espressif32 and framework=ispidf, arduino. After quite some compile time, I get: /home/jeroen/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/ssl_client.cpp:149:67: error: 'mbedtls_ssl_conf_psk' was not declared in this scope. I tried to run make menuconfig in the project directory, but I get: make: * No rule to make target 'menuconfig'. Stop.
What can I do?
Me No Dev
@me-no-dev
copy the sdkconfig from Arduino?
tools/sdk/sdkconfig
Jeroen88
@Jeroen88
Hi @me-no-dev I copied the sdkconfig file (so without .h) from /home/jeroen/.platformio/packages/framework-arduinoespressif32@src-537c58760dafe7fcc8a1d9bbcf00b6f6/tools/sdk but that yields the same error
Me No Dev
@me-no-dev
i'm no pio user, but you sure that is taken into account? @atanisoft could surely say better
Jeroen88
@Jeroen88
Thnx, I'll wait for @atanisoft! :)
chegewara
@chegewara
@Jeroen88 you need to add few mbedtls related configs to sdkconfig.h
I think this is what you need, at least it works for me:
#define CONFIG_ESP32_APPTRACE_ENABLE 1
#define CONFIG_ESP32_MEMMAP_TRACEMEM 1
#define CONFIG_ESP32_MEMMAP_TRACEMEM_TWOBANKS 1
#define CONFIG_ESP32_APPTRACE_ONPANIC_HOST_FLUSH_TMO -1
#define CONFIG_ESP32_APPTRACE_POSTMORTEM_FLUSH_THRESH 0
#define CONFIG_ESP32_APPTRACE_PENDING_DATA_SIZE_MAX 0
#define CONFIG_ESP32_APPTRACE_POSTMORTEM_FLUSH_TRAX_THRESH 0
#define CONFIG_ESP32_APPTRACE_DEST_NONE 1
#define CONFIG_ESP32_APPTRACE_LOCK_ENABLE 1


/*
 *
 * Automatically generated file; DO NOT EDIT.
 * Espressif IoT Development Framework Configuration
 *
 */
#define CONFIG_ENABLE_ARDUINO_DEPENDS 1
#define CONFIG_AUTOSTART_ARDUINO 1
#define CONFIG_ARDUINO_RUNNING_CORE 1
#define CONFIG_ARDUINO_UDP_RUN_CORE1 1
#define CONFIG_ARDUINO_EVENT_RUN_CORE1 1
#define CONFIG_ARDUINO_EVENT_RUNNING_CORE 1
#define CONFIG_ARDUINO_UDP_RUNNING_CORE 1
#define CONFIG_ARDUHAL_ESP_LOG 1

 /* mbedTLS configuration (not used) */
#define CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN 16384
#define CONFIG_MBEDTLS_KEY_EXCHANGE_RSA 1
#define CONFIG_MBEDTLS_AES_C 1
#define CONFIG_MBEDTLS_ECP_DP_SECP521R1_ENABLED 1
#define CONFIG_MBEDTLS_GCM_C 1
#define CONFIG_MBEDTLS_SSL_PROTO_TLS1 1
#define CONFIG_MBEDTLS_ECDSA_C 1
#define CONFIG_MBEDTLS_ECDH_C 1
#define CONFIG_MBEDTLS_KEY_EXCHANGE_ELLIPTIC_CURVE 1
#define CONFIG_MBEDTLS_SSL_ALPN 1
#define CONFIG_MBEDTLS_PEM_WRITE_C 1
#define CONFIG_MBEDTLS_ECP_DP_BP384R1_ENABLED 1
#define CONFIG_MBEDTLS_ECP_DP_SECP256K1_ENABLED 1
#define CONFIG_MBEDTLS_ECP_DP_CURVE25519_ENABLED 1
#define CONFIG_MBEDTLS_ECP_C 1
#define CONFIG_MBEDTLS_RC4_DISABLED 1
#define CONFIG_MBEDTLS_X509_CRL_PARSE_C 1
#define CONFIG_MBEDTLS_KEY_EXCHANGE_ECDH_RSA 1
#define CONFIG_MBEDTLS_CCM_C 1
#define CONFIG_MBEDTLS_ECP_DP_SECP224R1_ENABLED 1
#define CONFIG_MBEDTLS_ECP_DP_SECP384R1_ENABLED 1
#define CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA 1
#define CONFIG_MBEDTLS_ECP_NIST_OPTIM 1
#define CONFIG_MBEDTLS_X509_CSR_PARSE_C 1
#define CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_RSA 1
#define CONFIG_MBEDTLS_PEM_PARSE_C 1
#define CONFIG_MBEDTLS_MBEDTLS_DEFAULT_MEM_ALLOC 1
#define CONFIG_MBEDTLS_KEY_EXCHANGE_DHE_RSA 1
#define CONFIG_MBEDTLS_ECP_DP_BP256R1_ENABLED 1
#define CONFIG_MBEDTLS_ECP_DP_SECP224K1_ENABLED 1
#define CONFIG_MBEDTLS_HARDWARE_AES 1
#define CONFIG_MBEDTLS_TLS_ENABLED 1
#define CONFIG_MBEDTLS_SSL_PROTO_TLS1_1 1
#define CONFIG_MBEDTLS_SSL_PROTO_TLS1_2 1
#define CONFIG_MBEDTLS_SSL_SESSION_TICKETS 1
#define CONFIG_MBEDTLS_SSL_RENEGOTIATION 1
#define CONFIG_MBEDTLS_TLS_CLIENT 1
#define CONFIG_MBEDTLS_ECP_DP_SECP256R1_ENABLED 1
#define CONFIG_MBEDTLS_HAVE_TIME 1
#define CONFIG_MBEDTLS_ECP_DP_SECP192R1_ENABLED 1
#define CONFIG_MBEDTLS_ECP_DP_BP512R1_ENABLED 1
#define CONFIG_MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA 1
#define CONFIG_MBEDTLS_ECP_DP_SECP192K1_ENABLED 1
of course you can change some option from which i posted here, its just example
and you need to add options from sdkconfig.h from arduino