Class: DjiMqttConnect::Message
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DjiMqttConnect::Message
show all
- Defined in:
- lib/dji_mqtt_connect/message.rb
Direct Known Subclasses
Sys::Product::StatusMessage, Sys::Product::StatusReplyMessage, Thing::Product::EventsMessage, Thing::Product::EventsReplyMessage, Thing::Product::OsdMessage, Thing::Product::RequestsMessage, Thing::Product::RequestsReplyMessage, Thing::Product::ServicesMessage, Thing::Product::ServicesReplyMessage, Thing::Product::StateMessage, Thing::Product::StateReplyMessage
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.current_timestamp ⇒ Object
10
11
12
|
# File 'lib/dji_mqtt_connect/message.rb', line 10
def self.current_timestamp
Integer(Time.now.strftime("%s%L"))
end
|
.generate_bid ⇒ Object
14
15
16
|
# File 'lib/dji_mqtt_connect/message.rb', line 14
def self.generate_bid
SecureRandom.uuid
end
|
.generate_tid ⇒ Object
18
19
20
|
# File 'lib/dji_mqtt_connect/message.rb', line 18
def self.generate_tid
SecureRandom.uuid
end
|
Instance Method Details
#to_s ⇒ Object
22
23
24
|
# File 'lib/dji_mqtt_connect/message.rb', line 22
def to_s
self.class.name
end
|