Skip to content

A1 not getting status #162

@NelsonLive

Description

@NelsonLive

Using the basic code on my A1 and getting STATUS UKNOWN

IP = '192.168.1.200' fake
SERIAL = '02919C430100335' fake
ACCESS_CODE = '10892895' fake

Image

if name == 'main':
print('Starting bambulabs_api example')
print('Connecting to BambuLab 3D printer')
print(f'IP: {IP}')
print(f'Serial: {SERIAL}')
print(f'Access Code: {ACCESS_CODE}')

Create a new instance of the API

printer = bl.Printer(IP, ACCESS_CODE, SERIAL)

# Connect to the Bambulabs 3D printer
printer.connect()

time.sleep(2)

# Get the printer status
status = printer.get_state()
print(f'Printer status: {status}')

# Turn the light off
printer.turn_light_off()

time.sleep(2)

# Turn the light on
printer.turn_light_on()

# Disconnect from the Bambulabs 3D printer
printer.disconnect()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions