Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Renhe Li
    @lirenhe
    hello
    Zhe Li
    @Sneezry
    That's one small step for IoT Workbench, one giant leap for IoT.
    TechWatching
    @TechWatching
    Hi. Nice work on the vscode-iot-workbench. I have seen that samples use the event-hub compatible endpoint of IoT Hub to trigger Azure Functions. Is it the recommended way of connecting IoT Hub and Azure Functions ? Indeed the event-hub compatible endpoint is located in the Operations Monitoring section which is indicated to be deprecated. Moreover I have heard about Event Grid to connect IotHub and Azure Functions so I am a little bit confused about what is the preferred workflow.
    Arthur Ma
    @ArthurMa1978
    thank you @TechWatching yes, Event Grid is new and we will move to it later
    and thank you for trying our new extension, any feedback is welcome
    TechWatching
    @TechWatching
    I keep having this error : "Unable to compile device code, please open an IoT Workbench project and retry." when I open iot workbench projects I previously created.
    Zhe Li
    @Sneezry
    @TechWatching do you open the folder or open workspace? You should open project.vscode-workspace with VSCode instead of the folder.
    TechWatching
    @TechWatching
    Okay, on some old projects I created it does not seem to work when I open project.vscode-workspace with vscode but I have just tried with a new one and it seem to work fine. Thanks. It would be nice if the extension made it works as well when opening the correct folder.
    Guy Bertental
    @guybartal
    Just wanted to mention that I'm using IoT Workbench and it works perfectly! i love it, great job!!! kudos!
    Arthur Ma
    @ArthurMa1978
    @guybartal thank you~ we'r working on more features and hopefully it will be a good tool for iot developer! please feel free to contact us if you have any questions, honest feedback is appreciated!
    duncangallimore
    @duncangallimore
    Hi I don't have any boards listed in my Arduino Board Manager. What am I doing wrong? I've added the additional URLs.
    Thanks in advance
    Renhe Li
    @lirenhe
    @duncangallimore , could you click the 'Refresh Package Indexes' in the window of 'Arduino Board Manager'
    duncangallimore
    @duncangallimore
    Thanks I got it working - it's great, but it does seem to hang occasionally (I think when it gets multiple messages). Is there any way of debugging?
    Sorry should have said I'm using the M5Stack Email Receiver example
    duncangallimore
    @duncangallimore
    Am I posting in the right place? I've just realised no-one else has posted since July!
    Arthur Ma
    @ArthurMa1978
    @duncangallimore you meant download the package? Should be network issue, you can try downloading the package from https://github.com/espressif/arduino-esp32/releases/download/1.0.0/esp32-1.0.0.zip directly?
    duncangallimore
    @duncangallimore
    It's all up and running - really like it. I've got my little M5Stack receiving emails nicely. However, about once every hour or two it freezes and I need to try and find out why so I can make it more reliable. Is there any way to debug it in VSCode to find what causes the crash?
    Thanks!
    Renhe Li
    @lirenhe
    We fixed a potential stability issue in VSChina/ESP32_AzureIoT_Arduino@29d647b , but that change is not merged into the Arduino package. You could try to modify the code and have a try
    duncangallimore
    @duncangallimore
    Thanks - I've found and edited the file. Do I need to separately compile this before uploading to the device?
    duncangallimore
    @duncangallimore
    Sorry if that's a stupid question - I'm not sure how it all works
    Arthur Ma
    @ArthurMa1978
    @duncangallimore the upload command include the compile, so upload directly is ok
    duncangallimore
    @duncangallimore
    Sorry - I'm still getting the problem, and when I open the .cpp file I get 67 problems listed so I'm not sure it would compile(?)
    Renhe Li
    @lirenhe
    @duncangallimore, it is compiled. Seems the problem is not solved, could you open serial monitor when running the program and check the error log there?
    duncangallimore
    @duncangallimore
    Ah - I hadn't realised the serial monitor would show errors:

    Error: Time:Fri Nov 2 09:20:20 2018 File:C:\Users\dgallimore\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\libraries\AzureIoT\src\az_iot\iothub_client\src\iothubtransport_mqtt_common.c Func:mqtt_error_callback Line:1346 Mqtt Ping Response was not encountered. Reconnecting device...

    Error: Time:Fri Nov 2 09:20:20 2018 File:C:\Users\dgallimore\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\libraries\AzureIoT\src\az_iot\c-utility\pal\src\tlsio_openssl_compact.c Func:tlsio_openssl_destroy Line:213 tlsio_openssl_destroy called while not in TLSIO_STATE_CLOSED.

    Info: Failed DNS lookup for ihSmooth.azure-devices.net: 202

    Info: >>>Connection status: disconnected

    That's the first error I get
    It's then unresponsive and I get Info: tlsio_openssl_close has been called when in neither TLSIO_STATE_OPEN nor TLSIO_STATE_ERROR.
    Renhe Li
    @lirenhe
    @duncangallimore ,the mqtt connection was closed so the device could no longer send messages to the cloud. There seems to be a bug here as the retry logic was not triggered in this case.
    duncangallimore
    @duncangallimore
    Okay thanks - I've changed the logic for reconnecting and it works! This is now looking really good...
    duncangallimore
    @duncangallimore
    Ah - I'm starting to understand how it works. The reconnect errors:

    Info: >>>Re-connect.

    Error: Time:Thu Nov 8 15:53:17 2018 File:C:\Users\dgallimore\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\libraries\AzureIoT\src\az_iot\c-utility\pal\src\tlsio_openssl_compact.c Func:tlsio_openssl_send_async Line:758 tlsio_openssl_send_async without a prior successful open

    Error: Time:Thu Nov 8 15:53:17 2018 File:C:\Users\dgallimore\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\libraries\AzureIoT\src\az_iot\umqtt\src\mqtt_client.c Func:sendPacketItem Line:332 757: Failure sending control packet data

    Error: Time:Thu Nov 8 15:53:17 2018 File:C:\Users\dgallimore\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\libraries\AzureIoT\src\az_iot\umqtt\src\mqtt_client.c Func:mqtt_client_disconnect Line:1176 Error: mqtt_client_disconnect send failed

    Info: Initializing SNTP

    Info: SNTP initialization complete

    Info: IoT Hub SDK for C, version 1.1.23

    Error: Time:Thu Nov 8 15:53:19 2018 File:C:\Users\dgallimore\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\libraries\AzureIoT\src\az_iot\c-utility\pal\src\tlsio_openssl_compact.c Func:create_ssl Line:493 SSL_new failed

    Info: >>>Connection status: disconnected

    Info: >>>Connection status: disconnected

    Info: tlsio_openssl_close has been called when in neither TLSIO_STATE_OPEN nor TLSIO_STATE_ERROR.

    Then the last error and following info repeats
    Thanks again
    lsaidman
    @lsaidman
    Hello, I followed the instructions at https://microsoft.github.io/azure-iot-developer-kit/docs/get-started/ for the AZ3166 board, but Arduino is installed as an app, so I changed the arduino.path to "C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.19.0_x86__mdqgnx93n4wtt". I set the arduino.additionalurls as on the webpage, but it still isn't finding the az3166 board for arduino: board manager. I do see "[Error] Exit with code = EPERM . I'd love to get this working!!!
    Renhe Li
    @lirenhe
    @lsaidman ,this is a known issue and it is not solved yet. Microsoft/vscode-arduino#145 Could you use the normal installation package for Arduino IDE instead?
    lsaidman
    @lsaidman
    Good idea! I already tried it and Arduino IDE redirected back to the App store. Any instructions to get it to install "normal"?
    Renhe Li
    @lirenhe
    I did not quite understand 'Arduino IDE redirected back to App store'. So could you uninstall the one from Windows store and install from https://www.arduino.cc/en/Main/Software?
    lsaidman
    @lsaidman
    That worked! When I tried before, I must have clicked on "Windows App" instead of "Windows Installer for Windows XP and up" because I didn't read the "and up". Thanks!
    Abduselam Shaltu
    @ashaltu
    Does Raspberry Pi Zero work with Azure?
    Liya Du
    @liydu
    Tbone
    @tbone4711
    Hi. What has to be defined/included to get automatic pin names like A0, A1, D1, D2 ... to work like the Arduino IDE which includes the name-pin-mapping with the right selection of the board?
    alesklenka
    @alesklenka
    Link to M5 Stack Hardware Setup Guide (http://www.m5stack.com/assets/docs/index.html) on Get Started with ESP32 Devices (https://github.com/Microsoft/vscode-iot-workbench/blob/master/docs/esp32/esp32-get-started.md) is broken. Thanks :)