#
closed
MQTT problem on code

Dear Team,

I create a free account on hivemq for mqtt. and given url and port insert in code and env file but it does not working properly. Rider is not getting any ride. And flutter code through a error. Find below image

ATTACHED FILES

Asked 2 years ago on June 2, 2023 5:47 AM Comments 5 times


  1. Generic placeholder image

    Vincent replied

    Hello,

    Use this free broker.

    Set this below configuration in .env file:

    MQTT_HOST="broker.hivemq.com"
    MQTT_PORT=1883
    MQTT_ENABLE_LOGGING=false
    lib/utils/Constants.dart
    final client = MqttServerClient.withPort("broker.hivemq.com", "", 1883);
    Set this above configuration and check. Share your admin panel URL.

     

    Thanks & Regards,
    - Vincent
  2. Generic placeholder image

    Jao Bindas replied

    Still Facing the Same issue after install  newly apk of both apps

  3. Generic placeholder image

    Viktoria replied

    Please try to uninstall and reinstall again then try again.

     

     

  4. Generic placeholder image

    Jao Bindas replied

    Yes I change in both app in constant.dart

  5. Generic placeholder image

    Viktoria replied

    Hello Jao Bindas,

    Have you changed URL and port in constant.dart file?

    Thank you:)

     

Recent Tickets
river is not receiving ri... 7 months ago on January 29, 2025 9:03 AM Issues with installation... 5 days ago on September 12, 2025 10:37 AM in-app purchases are prem... 1 week ago on September 5, 2025 4:34 AM Flutter Brain Tree packag... 1 week ago on September 4, 2025 5:20 PM App rejected in Apple Sto... 2 weeks ago on September 3, 2025 10:01 AM I would like to know how ... 2 weeks ago on August 29, 2025 1:45 AM error - Mighty Web Webvie... 3 weeks ago on August 27, 2025 9:21 AM Google notification We wi... 3 weeks ago on August 27, 2025 1:32 AM Privacy policy does not o... 3 weeks ago on August 22, 2025 12:51 PM Face firebase error runti... 4 weeks ago on August 20, 2025 8:07 AM