This is a fixed barcode reader that reads the barcode content and sends it out through the WIFI port. The receiving end listens to the content sent from this port and displays it in a text box
B4J v2.00 adds support for web applications based on WebSocket technology. With WebSocket The browser and the server maintain an open communication channel. This channel allows us to build web apps where all (or most) of the logic is implemented in the server. The new framework is implemented...
What is MQTT? "MQTT is a Client Server publish/subscribe messaging transport protocol. It is light weight, open, simple, and designed so as to be easy to implement. These characteristics make it ideal for use in many situations, including constrained environments such as for communication in...
’listening
Private Sub Winsock1_ConnectionRequest(ByVal requestID As Long)
If Winsock1.State <> sckClosed Then Winsock1.Close
Winsock1.Accept requestID
End Sub
‘get
Dim strData As String
Winsock1.GetData strData
In VB6.0, I used Winsock components to implement listening and content retrieval. I am not sure if there are similar components or related cases to use in B4A for reference.
#### Mode 01: Current Data
- **0100**: Request Supported PIDs (01-20)
- **0101**: Engine Coolant Temperature
- **0102**: Short Term Fuel Trim Bank 1
- **0103**: Long Term Fuel Trim Bank 1
- **0104**: Short Term Fuel Trim Bank 2
- **0105**: Long Term Fuel Trim Bank 2
- **0106**: Fuel Pressure
- **0107**: Intake Air Temperature
- **0108**: Mass Air Flow Rate
- **0109**: Throttle Position
- **010A**: Commanded Secondary Air Status
- **010B**: Oxygen Sensor Status
- **010C**: Engine RPM
- **010D**: Vehicle Speed
- **010E**: Timing Advance
- **010F**: Intake Air Pressure
- **0110**: Air Flow Rate from Mass Air Flow Sensor
- **0111**: Absolute Throttle Position B
- **0112**: Absolute Throttle Position C
- **0113**: Acceleration Pedal Position D
- **0114**: Acceleration Pedal Position E
- **0115**: Acceleration Pedal Position F
- **0116**: Commanded Throttle Actuator Control
- **0117**: Time Since Engine Start
- **0118**: Engine Fuel Rate
- **0119**: Emission Requirements (OBD II)
#### Mode 02: Freeze Frame Data
- **0200**: Request Freeze Frame Data
In this example, I have successfully connected the code reader through IP and port number. Next, I would like to obtain the content read by the code reader and display it on Lable1.text. How can I implement this? Thank you!