Home > database >  The bytes in the VB type to the type of PB
The bytes in the VB type to the type of PB

Time:09-23

VB defined structure:
M_modemid As Long 'Modem module ID
M_recv_time As Long 'receives the packet time
M_data_buf (1451) As Byte 'store the data received
M_data_len As Integer 'receives the packet length
M_data_type As Byte 'receives a packet type, 0 x01: user packets 0 x02: a response to control command frame
Right to the following data of PB read
Long m_modemid
Long m_recv_time
Byte m_data_buf [1451]
Long m_data_len
Byte m_data_type
Like is a problem of type conversion, don't know how to give advice or comments please!

CodePudding user response:

Byte m_data_buf [1451] - & gt;
Character m_data_buf [1451]

CodePudding user response:

Just need this thing
  • Related