NB-IoT to AWS?



  • Hey everyone, I'm working on a project that consists of having a gas sensor connected to the FiPy board which is connected to T-Mobile using NB-IoT. I want to have the collected data from the sensor transmit to Amazon Web Services (AWS).

    From AWS I have the AWS_ROOT_CA, AWS_CLIENT_CERT, & AWS_PRIVATE_KEY downloaded onto my mac computer. The documentation says to place these files in a /flash/cert folder.

    How do I perform this function if I'm using NB-IoT since the documentation uses WIFI?

    Shown below is the config.py file

    AWS general configuration

    AWS_PORT = 8883
    AWS_HOST = 'ABCDEFGHIJK.iot.us-west-2.amazonaws.com'
    AWS_ROOT_CA = '/flash/cert/aws_root.ca'
    AWS_CLIENT_CERT = '/flash/cert/aws_client.cert'
    AWS_PRIVATE_KEY = '/flash/cert/aws_private.key'

    ################## Subscribe / Publish client #################
    CLIENT_ID = 'PycomPublishClient'
    TOPIC = 'PublishTopic'
    OFFLINE_QUEUE_SIZE = -1
    DRAINING_FREQ = 2
    CONN_DISCONN_TIMEOUT = 10
    MQTT_OPER_TIMEOUT = 5
    #LAST_WILL_TOPIC = 'PublishTopic'
    #LAST_WILL_MSG = 'To All: Last will message'

    ####################### Shadow updater ########################
    #THING_NAME = "my thing name"
    #CLIENT_ID = "ShadowUpdater"
    #CONN_DISCONN_TIMEOUT = 10
    #MQTT_OPER_TIMEOUT = 5

    ####################### Delta Listener ########################
    #THING_NAME = "my thing name"
    #CLIENT_ID = "DeltaListener"
    #CONN_DISCONN_TIMEOUT = 10
    #MQTT_OPER_TIMEOUT = 5

    ####################### Shadow Echo ########################
    THING_NAME = "Smart_Meter"
    CLIENT_ID = "ShadowEcho"
    CONN_DISCONN_TIMEOUT = 10
    MQTT_OPER_TIMEOUT = 5



  • Hi @riverj17,
    Can you please share the new topic, where you moved?



  • Hi @riverj17,

    I moved your topic to the correct section.


Log in to reply
 

Pycom on Twitter