Skip to content

Example for Scans device #4

@jinyistudio534

Description

@jinyistudio534

Can you share a little example about hoe to scan devices in the bus ? 😵
i have test your sample
from ebpfcat.ebpfcat import FastEtherCat

master = FastEtherCat("eth0")
await master.connect()
await master.scan_bus()

but i get following message 😵
python ebpfcat1.py
File "/home/jinyistudio/python/ebpfcat1.py", line 6
await master.connect()
^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: 'await' outside function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions