Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Me No Dev
@me-no-dev
yey :D now let's DoS your device :P
if you use the new LwIP, it does not have the TIME_WAIT limiter yet, so I might be able to :D
david gauchard
@d-a-v
@me-no-dev the DoS protection is just merged :) - thanks
Me No Dev
@me-no-dev
good job @d-a-v !
Rui Azevedo
@neu-rah
my esp8266 keep trying to connect to a non-existing network
onStationModeDisconnected «ssid»
even with WL_MAX_ATTEMPT_CONNECTION:10
it never stops trying, is there a way to prevent storage of of connection data and auto-connection?
Rui Azevedo
@neu-rah
WiFi.disconnect() or WiFi.mode(WIFI_OFF) seem not to help
Rui Azevedo
@neu-rah
for reference:
WiFi.setAutoReconnect(false) seems to work
uff ;)
Holger Lembke
@holgerlembke
@me-no-dev regarding the i2c errors: replacing faulty usb-hub-power-supply seemd to fix it
liebman
@liebman
What builds this file "eagle.app.v6.common.ld”? I’m using Eclipse/Sloeber and with the current git version this file does not exist. However if I build with Arduino IDE it gets created.
NM - found it in platform.txt
Laurensius Dede Suhardiman
@laurensius
Hii...
nishant pashine
@npashine_gitlab
Hi All,
kindly tell how i can use the prescale on clk_xtal using arduino for ESP8266
nishant pashine
@npashine_gitlab
it is possible to get the desired output frequency on gpio pin.
i want 256*44100 frequency on clk_xtal pin
sankarsurya
@sankarsurya
anyone having udp server multicast sample code for esp32
sankarsurya
@sankarsurya
sorry i forget and send
Matej Sychra
@suculent
Anyone seen sha256 in the ROM? esp8266/Arduino#4771
Develo
@devyte
@suculent SuperHouse/esp-open-rtos#65
not an exhaustive list, but pretty big, and I only see sha1.
Manu Gil
@manugildev
Playware Modular Embedded System: https://www.youtube.com/watch?v=pACAOP43U20
I did this last year for a project of mine, allowing connection in a closed network of devices for interactive applications
Thnaks again for support guys :smile:
Me No Dev
@me-no-dev
@manugildev amazing!
Develo
@devyte
nice!
bobcroft
@bobcroft
@manugildev Brilliant I hope you publish your project as I would be very interested to read it.
Bert Melis
@bertmelis
is there a way to get the total heap size? or is it always the same (80kB - 4k stack)?
Earle F. Philhower, III
@earlephilhower
ESP.getFreeHeap() gives the available space. Expect about 40KB on an empty sketch to start.
Bert Melis
@bertmelis
I know, but in terms of % used, do I just divide freeHeap by 40K?
Earle F. Philhower, III
@earlephilhower
How accurate you want? Could assume 40kb, or just keep a copy of the initial free heap and divide current value to get exact.
Bert Melis
@bertmelis
float percentFreeHeap = ESP.getFreeHeap() / 760.0; Doesn't need to be accurte. I don't want to work cutting edge.
760 = 80kB - 4kB (stack) / 100 (for percent)
Earle F. Philhower, III
@earlephilhower
Actually, the 4k stack is now stored in the SYS stack so you could just divide by 800.
And given the error bars assuming 80kb to start, an integer division would be fine, too.
Bert Melis
@bertmelis
got it :wink: Thanks for the insight.
got it running. I've got 46% free heap, running mqtt and a webserver/websockets. that's plenty to connect "real" stuff to the esp.
Chris Dalby
@moose4621
First post :-). I have been working on this project but I cannot work out how to interpret a websockets blob sent from the esp8266 server to the client. I can see that it gets sent ok but I cannot find any reference on how to decode it in js. https://github.com/moose4621/Seeder-Controller
Ash
@ashthespy
@moose4621 It is just a uint8 array that you have to cast back
Chris Dalby
@moose4621
@ashthespy Thanks Ash for your time. I'm seems it is the decoding of the array at the client end that I seem unable to comprehend. I cannot find an example closely related to this situation that I am able to pick apart and use. I've read so many tutorials but here I am still with no idea how to pull apart the blob or uint8 array to use in the form.
Ash
@ashthespy
@moose4621 let me see if I can dig up an example from my stuff
Ash
@ashthespy
Here is a simple example
Chris Dalby
@moose4621
@ashthespy Thanks Ash, but why don't I see the link?
Ash
@ashthespy
I have a simple struct
struct RGBW {
        /*
           Construct a RgbwColor using R, G, B, W values (integers in the range of [0
           - (2^n)-1])
         */
        RGBW(uint32_t r, uint32_t g, uint32_t b, uint32_t w) :
                R(r), G(g), B(b), W(w){
        };


        /*
           Construct a RgbwColor using only HSI values
         */
        RGBW(const HSLW& color);

        RGBW(const HSLW& color, float w);
        /*
           For later init
         */
        RGBW()
        {
        };

        // a helper funtion to printf
        char * printRGBW(char* buff);
        // RGBW Members - in intin point
        uint32_t R;
        uint32_t G;
        uint32_t B;
        uint32_t W;
};
Sorry -- digging through all bits of code on a newly setup machine!
This is sent to the client with a straightforward webSocket.sendBIN(num, binRGBWArry,sizeof(LastRGBW));
On the client side :
$websocket('ws://192.168.4.1:81', {
    binaryType: 'arraybuffer'
});
/
dataStream.onMessage(function(message) {
    try { // Q&D check if msg is JSON or string
        res = JSON.parse(message.data);
    } catch (e) {
        res = message.data;
    }
})
This will give you binRGBW: 0x04 0x00 0x00 0x00 0x04 0x00 0x00 0x00 0x53 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Ash
@ashthespy
Since we know it's a uint32_t to begin with, we can cast it back with TypedArrays
This should get you started - I can whip up a better example tomorrow from my main machine if you are still having issues!
den har
@denman0000_gitlab
Hi all .. I have an issue trying to access .js files from SPIFFS on esp8266 .. as far as i can tell the files get copied and the .html file containing the javascript and its links loads fine .. but viewing the source of the page and selecting the .js file pointed to renders the error NOT FOUND .. I would appreciate any pointers please