예제 #1
0
def TestOne():
    transfer = {"Function_NAME": "1", "Status": "DONE", "Error": None}
    write2fifo(transfer, IPC_FIFO_NAME)
    return 0
예제 #2
0

def TesThree():
    transfer = {"Function_NAME": "3", "Status": "DONE", "Error": None}
    write2fifo(transfer, IPC_FIFO_NAME)
    return 0


def TesFour():
    transfer = {"Function_NAME": "4", "Status": "DONE", "Error": None}
    write2fifo(transfer, IPC_FIFO_NAME)
    return 0


if __name__ == "__main__":
    """
    Write to Fifo
    Pass along dict
    """
    IPC_FIFO_NAME = "TEST"
    TestOne()
    TesTwo()
    TesThree()
    TesFour()
    transfer_dict = {
        "Function_NAME": "__main__",
        "Status": "DONE",
        "Error": None
    }
    write2fifo(transfer_dict, IPC_FIFO_NAME)