19 lines
837 B
Dart
19 lines
837 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 = 'nearle/riders/{riderId}/status';
|
|
static const String topicRiderProfile = 'nearle/riders/{riderId}/profile';
|
|
static const String topicRiderLocation = 'nearle/riders/{riderId}/location';
|
|
static const String topicRiderTelemetry = 'nearle/riders/{riderId}/telemetry';
|
|
static const String topicRiderLogs = 'nearle/riders/{riderId}/logs';
|
|
|
|
// Status Values
|
|
static const String statusOnline = 'Online';
|
|
static const String statusOffline = 'Offline';
|
|
static const String statusIdle = 'Idle';
|
|
}
|