Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Markus
@Links2004
void setup() {
    Serial.begin(115200);
  #ifdef ESP8266
  extern "C" {
void ICACHE_FLASH_ATTR user_ping_recv(void *arg, void *pdata){
you can not create a function in a function
and no extern "C" { in this case.
gonsays
@gonsays
thank you so much!
no extern "C" here, but the function must be inside the ifdef right?
Markus
@Links2004
the ifdef is not needed for the ESP
only if you what to use the same code in AVR
gonsays
@gonsays
Gives me these errors:
CallSDK-v2.ino: In function 'void setup()':
CallSDK-v2:23: error: a function-definition is not allowed here before '{' token
CallSDK-v2:34: error: a function-definition is not allowed here before '{' token
CallSDK-v2:39: error: a function-definition is not allowed here before '{' token
a function-definition is not allowed here before '{' token
Markus
@Links2004
still function in function
gonsays
@gonsays
I've removed the ICACHE_FLASH_ATTR
ohh
ok
I got it
outside the setup or loop
yes
Note os_printf is only visible if you do:
Setup.setDebugOutput(true);
gonsays
@gonsays
blob
oh, ok
it gives me all these errors when I try to compile it
gonsays
@gonsays
yup, I tried to compile your code
and gave me these errors
Markus
@Links2004
the http://bbs.espressif.com/viewtopic.php?t=583 code seams not to good.
i only write it "free hand", have no IDE & compiler at my tablet.
gonsays
@gonsays
ohh ok thank you
gonsays
@gonsays
CallSDK-v2:39: error: 'ping_start' was not declared in this scope
the ping_Start function from the SDK is not being identified
it should been identified right?
maybe i'm not including something
Ivan Kravets
@ivankravets
Dear PlatformIO Users, welcome to PlatformIO IDE beta testing https://twitter.com/platformio_org/status/691030836720844800
Markus
@Links2004
@gonsays include ping.h
gonsays
@gonsays
oh ok thnaks!
I don't think that I have that file
well, at least it compiled now
Setup.setDebugOutput(true);
in order to "watch" the answer
gonsays
@gonsays
should I include a lib to use it?
oh
is it Serial.setDebug...
oh ok, now it has compiled :P I've declared it on the setup
@Links2004 it is WOKING! Thank you SO MUCH! :D
Aditya Tannu
@AdySan
Has anyone tested the FSBrowser example lately? Last time I tried a few months ago it was very stable, but with latest git, rarely loads page, doesn't always disconnect of closing browser, cannot reconnect from a browser, mDNS wont work, have to access server by IP, what am I doing wrong? @me-no-dev
Aditya Tannu
@AdySan
Everything works a couple of times, but if you leave the sketch idle for a few mins, nothing responds. Also I can very rarely load a page from an iOS device.
Me No Dev
@me-no-dev
No clue @AdySan but can say that some changes went into the WebServer (I have no clue what though) and maybe those or something else.
Me No Dev
@me-no-dev
@AdySan have you tried the Async Server?
brutzler
@brutzler
Hi,
has anybody experience with battery-powered ESP?
Want to make a movable temp-transmitter with an ESP and a DS18B20. Thought to power it with 2 Mignon (AA) batteries. How long do you think will the batterie hold on for this?
I want to transmit the actual temp every 1 min (or even less) to my emoncms-server. Can I power down the WiFi for the rest of the time to save power? Or do some other tricks?
Me No Dev
@me-no-dev
as a matter of fact you shoudl if you want any real life from the batteries
maye even go at 2-5 minutes per measurement
Markus
@Links2004
deepsleep will help be better as only disable wifi ~20mA vs some uA