20 lines
854 B
Dart
20 lines
854 B
Dart
class MqttConstants {
|
|
static const String brokerHost = '66.116.225.226'; // Updated with VPS IP
|
|
static const int brokerPort = 1883;
|
|
static const String username = 'admin';
|
|
static const String passwordString = 'Package@321#'; // Provided by user
|
|
|
|
// Topic Structure
|
|
static const String topicRiderStatus = 'doormile/riders/{riderId}/status';
|
|
static const String topicRiderProfile = 'doormile/riders/{riderId}/profile';
|
|
static const String topicRiderLocation = 'doormile/riders/{riderId}/location';
|
|
static const String topicRiderTelemetry =
|
|
'doormile/riders/{riderId}/telemetry';
|
|
static const String topicRiderLogs = 'doormile/riders/{riderId}/logs';
|
|
|
|
// Status Values
|
|
static const String statusOnline = 'Online';
|
|
static const String statusOffline = 'Offline';
|
|
static const String statusIdle = 'Idle';
|
|
}
|