Credentials were understood and rejected, or the client is not permitted to connect at all. Code 4 is the narrower bad-username-or-password case.
This is a configuration or addressing mistake on the wire, upstream of anything Forge sees. Where Forge helps is the step after you fix it: once the point returns data, its vendor tag name maps to a canonical field automatically, so you do not also have to hand-maintain a name table for every point you just re-addressed.
Forge's MQTT adapter reads JSON or raw-value payloads. It does not decode Sparkplug B protobuf payloads yet, so a Sparkplug B stream needs a bridge that republishes metrics as JSON.
One MCP endpoint serves every protocol adapter. 2,478 vendor mappings across 49 vendor packs, 1,031-field canonical schema.
Other MQTT codes: CONNACK 1 CONNACK 2 CONNACK 3 Sparkplug NDATA before NBIRTH Sparkplug seq out of order
Equipment that speaks MQTT: MiR (Mobile Industrial Robots) Chemical process Food & beverage process Pharma process (GMP) OTTO Motors Geek+ (Geekplus) Locus Robotics Omron AMR (LD/HD) Trumpf
Other protocols: Modbus OPC UA EtherNet/IP PROFINET / S7 BACnet/IP J1939 (CAN) MTConnect ROS 2 (DDS) MAVLink HTTP / REST CSV ingest