blynkkk / lib-python

Blynk IoT library for Python and Micropython
MIT License
238 stars 82 forks source link

It is unable to send or receive data #42

Closed Shikhar0708 closed 3 years ago

Shikhar0708 commented 3 years ago

Screenshot (183)

antohaUa commented 3 years ago

Hi Shikhar! Can you pls share script that you are running?

Shikhar0708 commented 3 years ago

sure Screenshot (184)

antohaUa commented 3 years ago
  1. decorator should be exactly before function definition. There should be no empty lines So please move line 4 to line 5

    1. I think you are using other python lib cause current has no "virtual_write" and "set_user_task" calls. I guess this is https://github.com/vshymanskyy/blynk-library-python

    2. If you want try current lib examples below can be very very useful. Just try to run them. https://github.com/blynkkk/lib-python/tree/master/examples

Shikhar0708 commented 3 years ago

I am trying to blink LED of nodemcu(esp8266) is there any site or source where i can find the documentation of this library. How can I use the concept of digital pins rather than virtual pin declaration

antohaUa commented 3 years ago

Virtual pins and digital pins almost the same. As minimum you can define the same numbers ( virtual_pin_number == board pin number) Full doc you can get here: http://docs.blynk.cc/#blynk-firmware If you want real HW examples - please check and try to run https://github.com/blynkkk/lib-python/blob/master/examples/esp8266/01_potentiometer.py https://github.com/blynkkk/lib-python/blob/master/examples/esp32/03_temperature_humidity_dht22.py

Both examples have great description - I'm sure you will be able to get basic "how to " knowledge

Shikhar0708 commented 3 years ago

ok thanks , can you tell me how can i contribute this?

antohaUa commented 3 years ago

Not clear what do you mean ? Doc how to operate with ESP8266 can be found here: https://github.com/blynkkk/lib-python/blob/master/examples/esp8266/README.md Each example from this location https://github.com/blynkkk/lib-python/tree/master/examples has inside caption with detailed steps and schemas ...

Something should be clarified additionally?

antohaUa commented 3 years ago

Will close for now. Feel free to re-open