Link Search Menu Expand Document

WiFi Pineapple Python Helpers Class

Table of contents

  1. Introduction
  2. Functions

Introduction

Python API

Functions

def json_to_bytes(message) -> bytes
JSON deserialize a message and then decode it.

Use this to convert your json message to bytes before publishing it over the socket.

Parameters

  • message: A json serializable list or a dict.

Returns

  • bytes