Şimdi Ara

ESP32 İle İletişim Ve C#'ta Veri Okuma

Daha Fazla
Bu Konudaki Kullanıcılar: Daha Az
2 Misafir - 2 Masaüstü
5 sn
4
Cevap
1
Favori
48
Tıklama
Daha Fazla
İstatistik
  • Konu İstatistikleri Yükleniyor
0 oy
Öne Çıkar
Sayfa: 1
Giriş
Mesaj
  • Alt başlıklar tam doğru olmamış olabilir kusura bakmayın. Takım olarak bir proje yapıyoruz. Otonom bir araç. Girilen rota bilgisine göre veya zeminden okunan kare koda göre zemindeki çizgileri sensörler aracılığıyla takip ederek varış noktasına gidiyor, yükü alıp hedef noktaya bırakıyor. Araçtan okunan sıcaklık, hız, yük vs bilgileri sensör tarafından okunup bilgilerin takip edileceği bilgisayara gönderilmesi lazım. Arayüzü C# ile yazmayı düşünüyorum. Araç tarafında da iletişim için ESP32 olacak. Epey araştırdım ama tam istediğim şekilde kaynak video bulamadım. Esp now ile iletişim kurabilir miyiz, yaparsak bilgisayar tarafında veriyi nasıl C#'a aktarıp kullanabilirim? Bunun bir kütüphanesi mi var acaba ya da farklı bir iletişim protokolü mü kullanmalıyız? Bilgisi olan, bu alanda çalışmış ya da teknofestte yarışmış arkadaşlar yardımcı olabilirse çok sevinirim. Şimdiden teşekkürler  .









  • Dostum şimdi esp32 cihazın sürekli bir veri toplayacaksa bununda kodlamasını yapacaksanız içine birtane istek gönderen protokol yazabilirsin örnek olarak MQTT ile gönderebilirsin bu client olur birtanede server olur verileri toplayacak olan cihaz wifi yada bluetooth bağlantın varsa bunu gönderebilirsin MQTT yi araştırmanı tavsiye ederim.


    kaynak :


    Coding With Brettyoutube
    Here's how to quickly connect a Windows PC C# application to an ESP32, ESP32 CAM or ESP8266 microcontroller over wifi. The two connected devices will communicate with each other using the MQTT protocol. This is a lightweight Internet of Things (IoT) protocol and it's supported by both C# and the ESP32 and ESP8266 controllers. Because it uses a standard wifi connection there doesn't need to be a physical cable connection between the PC and the microcontroller device. This video largely demonstrates how to get the two devices communicating successfully. In particular I cover what libraries to use, as well as troubleshooting the major issues I had in getting MQTT working on my own home wifi network (including which IP address to connect to and Windows Defender Firewall issues). If you want to send and receive anything useful then watch my other MQTT videos. 00:00 - Introduction 01:08 - Server Code for C# .NET Core 04:20 - Client Code for ESP32/ESP8266 07:18 - Troubleshooting Connectivity Issues 08:47 - MQTT Test Apps Server code (C# .NET Core): https://github.com/dotnet/MQTTnet (watch video for more info) Client code: https://www.brettb.com/coding-tutorials/esp32-mqtt-tutorial/ MQTT test application: https://mqttx.app/downloads MyMQTT for Android devices: find it in the Play Store MQTT (MQ Telemetry Transport) is a client-server model. The server is called a broker and multiple clients may connect to it. In this example I've set the PC up as the server, and an ESP32 CAM device as the client using the PubSubClient library. You might think it would be better the other way round. However, it's much easier to get microcontrollers running as the client.
    https://www.youtube.com/watch?v=Igxi6wBQmIM






  • Tamamdır biraz daha MQTT bakatım ben, teşekkürler.

  • 
Sayfa: 1
- x
Bildirim
mesajınız kopyalandı (ctrl+v) yapıştırmak istediğiniz yere yapıştırabilirsiniz.